diff --git a/tests/network/HTTP_RestAPI_Tests.cpp b/tests/network/HTTP_RestAPI_Tests.cpp index f1a8b002..f0a7c865 100644 --- a/tests/network/HTTP_RestAPI_Tests.cpp +++ b/tests/network/HTTP_RestAPI_Tests.cpp @@ -129,11 +129,30 @@ private: std::shared_ptr m_state; }; +// --------------------------------------------------------------------------- +// Class Declaration +// --------------------------------------------------------------------------- + +/** + * @brief A request handler that captures the HTTP response from the server. + */ class ClientResponseHandler { public: + /** + * @brief Initializes a new instance of the ClientResponseHandler. + */ ClientResponseHandler() : m_state(std::make_shared()) { } + /** + * @brief Initializes a new instance of the ClientResponseHandler with the specified response state. + * @param state The shared response state to be used by the handler. + */ explicit ClientResponseHandler(std::shared_ptr state) : m_state(std::move(state)) { } + /** + * @brief Handles an incoming HTTP response from the server. + * @param response The HTTP response received from the server. + * @param reply The HTTP reply to be sent back to the server (ignored in this handler). + */ void handleRequest(const HTTPPayload& response, HTTPPayload& reply) { (void)reply;