MCPcopy Create free account
hub / github.com/chronoxor/CppServer / CreateSession

Method CreateSession

examples/http_server.cpp:178–181  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

176
177protected:
178 std::shared_ptr<CppServer::Asio::TCPSession> CreateSession(const std::shared_ptr<CppServer::Asio::TCPServer>& server) override
179 {
180 return std::make_shared<HTTPCacheSession>(std::dynamic_pointer_cast<CppServer::HTTP::HTTPServer>(server));
181 }
182
183protected:
184 void onError(int error, const std::string& category, const std::string& message) override

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected