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

Method onReceivedRequest

performance/http_trace_server.cpp:23–30  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

21
22protected:
23 void onReceivedRequest(const HTTPRequest& request) override
24 {
25 // Process HTTP request methods
26 if (request.method() == "TRACE")
27 SendResponseAsync(response().MakeTraceResponse(request.cache()));
28 else
29 SendResponseAsync(response().MakeErrorResponse("Unsupported HTTP method: " + std::string(request.method())));
30 }
31
32 void onReceivedRequestError(const HTTPRequest& request, const std::string& error) override
33 {

Callers

nothing calls this directly

Calls 1

methodMethod · 0.80

Tested by

no test coverage detected