1 #include <lib/base/init_num.h>
2 #include <lib/base/init.h>
3 #include <lib/network/http.h>
5 eHTTPServer *eHTTPServer::m_instance;
7 RESULT eHTTPServer::getDynResolver(eHTTPDynPathResolverPtr &ptr)
15 RESULT eHTTPServer::getFileResolver(eHTTPFilePathResolverPtr &ptr)
23 eHTTPServer::eHTTPServer(): m_httpd(8080, eApp)
26 m_dyn = new eHTTPDynPathResolver();
27 m_file = new eHTTPFilePathResolver();
29 m_httpd.addResolver(m_dyn);
30 m_httpd.addResolver(m_file);
33 eAutoInitP0<eHTTPServer> init_eHTTPServer(eAutoInitNumbers::network, "main http server");