| 21 | |
| 22 | protected: |
| 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 | { |