5 #ifndef __HTTP_SERVER_H__
6 #define __HTTP_SERVER_H__
11 #include <boost/function.hpp>
16 #define HTTP_WILDCARD_ENTRY "_match_any_"
HttpServer(EventManager *evm, const SslConfig &config=SslConfig(), uint8_t dscp=0)
void RegisterHandler(const std::string &path, HttpHandlerFn handler)
boost::function< void(HttpSession *session, const HttpRequest *)> HttpHandlerFn
HttpHandlerFn GetHandler(const std::string &path)
HandlerTrie http_handlers_
std::map< std::string, HttpHandlerFn > HandlerTrie
virtual bool AcceptSession(SslSession *session)
virtual SslSession * AllocSession(SslSocket *socket)
void UpdateDscp(uint8_t value)
DISALLOW_COPY_AND_ASSIGN(HttpServer)
boost::asio::ssl::stream< boost::asio::ip::tcp::socket > SslSocket