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

Class HTTPSTraceServer

performance/https_trace_server.cpp:43–59  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

41};
42
43class HTTPSTraceServer : public HTTPSServer
44{
45public:
46 using HTTPSServer::HTTPSServer;
47
48protected:
49 std::shared_ptr<SSLSession> CreateSession(const std::shared_ptr<SSLServer>& server) override
50 {
51 return std::make_shared<HTTPSTraceSession>(std::dynamic_pointer_cast<HTTPSServer>(server));
52 }
53
54protected:
55 void onError(int error, const std::string& category, const std::string& message) override
56 {
57 std::cout << "HTTPS Trace server caught an error with code " << error << " and category '" << category << "': " << message << std::endl;
58 }
59};
60
61int main(int argc, char** argv)
62{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected