#include <HttpServer.hpp>
Public Types | |
|
typedef std::map< std::string, HttpServiceHandler * > | HttpTableType |
Public Member Functions | |
| HttpServer (int port) | |
| void * | start () |
| run the http server | |
| void | registerHandler (std::string url, HttpServiceHandler *handler) |
| regiester the http request handler | |
| int | getPort () |
Http Server class basically is a dispatcher for incoming Http request to proper Http request handler
|
|
|
|
||||||||||||
|
regiester the http request handler Http Server maintain a table for the http request handler, which is indexed by the realtive request path in the http request header
|
|
|
run the http server run the http server and begin listenning the incoming request |
1.3.7