MCPcopy Create free account
hub / github.com/cinemast/libjson-rpc-cpp / GetHandler

Method GetHandler

src/jsonrpccpp/server/connectors/httpserver.cpp:35–42  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

33HttpServer::~HttpServer() {}
34
35IClientConnectionHandler *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
44HttpServer &HttpServer::BindLocalhost() {
45 this->bindlocalhost = true;

Callers 3

HandleRequestMethod · 0.45
callbackMethod · 0.45
StartListeningMethod · 0.45

Calls 2

findMethod · 0.80
endMethod · 0.45

Tested by

no test coverage detected