Implemented request bodies
This commit is contained in:
@@ -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;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user