| 33 | HttpServer::~HttpServer() {} |
| 34 | |
| 35 | IClientConnectionHandler *HttpServer::GetHandler(const std::string &url) { |
| 36 | if (AbstractServerConnector::GetHandler() != NULL) |
| 37 | return AbstractServerConnector::GetHandler(); |
| 38 | map<string, IClientConnectionHandler *>::iterator it = this->urlhandler.find(url); |
| 39 | if (it != this->urlhandler.end()) |
| 40 | return it->second; |
| 41 | return NULL; |
| 42 | } |
| 43 | |
| 44 | HttpServer &HttpServer::BindLocalhost() { |
| 45 | this->bindlocalhost = true; |
no test coverage detected