1 #ifndef HTTPSERVERTRANSPORT__HPP
2 #define HTTPSERVERTRANSPORT__HPP
70 CHttpDaemon(
const std::vector<CHttpHandler> & handlers,
71 const std::string & tcp_address,
unsigned short tcp_port,
72 unsigned short tcp_workers,
unsigned short tcp_backlog,
73 unsigned short tcp_max_connections,
74 size_t tcp_max_connections_soft_limit);
77 void Run(std::function<
void(
CTcpDaemon &)> on_watch_dog =
nullptr);
78 h2o_globalconf_t *
HttpCfg(
void);
uint16_t NumOfConnections(void) const
CHttpDaemon(const std::vector< CHttpHandler > &handlers, const std::string &tcp_address, unsigned short tcp_port, unsigned short tcp_workers, unsigned short tcp_backlog, unsigned short tcp_max_connections, size_t tcp_max_connections_soft_limit)
h2o_globalconf_t * HttpCfg(void)
std::unique_ptr< CTcpDaemon > m_TcpDaemon
std::vector< CHttpHandler > m_Handlers
static const char * sm_CdUid
static int s_OnHttpRequest(h2o_handler_t *self, h2o_req_t *req)
bool m_HttpCfgInitialized
h2o_globalconf_t m_HttpCfg
const unsigned short kAnyPort
void Run(std::function< void(CTcpDaemon &)> on_watch_dog=nullptr)
void(*)(CSeq_entry_Handle seh, IWorkbench *wb, const CSerialObject &obj) handler
std::function< void(CHttpRequest &req, shared_ptr< CPSGS_Reply > reply)> HttpHandlerFunction_t
CHttpPostParser * m_PostParser
HttpHandlerFunction_t m_Handler
CHttpHandler(const std::string &path, HttpHandlerFunction_t &&handler, CHttpRequestParser *get_parser, CHttpPostParser *post_parser)
CHttpRequestParser * m_GetParser