Implemented request bodies

This commit is contained in:
2022-06-30 03:41:33 +02:00
parent fb84784d1c
commit aa073c2385
10 changed files with 146 additions and 22 deletions
@@ -13,13 +13,14 @@
// forward declarations
class ClientConnection;
class DebugResponseHandler : public ResponseHandler
class DebugResponseHandler final : public ResponseHandler
{
public:
DebugResponseHandler(ClientConnection &clientConnection, std::string_view method, std::string_view path, std::string_view protocol);
~DebugResponseHandler() override;
~DebugResponseHandler() final;
void requestHeaderReceived(std::string_view key, std::string_view value) final;
void requestBodyReceived(std::string_view body) final;
void sendResponse() final;
private:
@@ -32,5 +33,7 @@ private:
std::vector<std::pair<std::string, std::string>> m_requestHeaders;
std::string m_requestBody;
std::string m_response;
};