From 7ff2474760fdfd12731460b91b9bde5653158a9e Mon Sep 17 00:00:00 2001 From: Harald Siegmund Date: Tue, 2 May 2023 11:37:04 +0200 Subject: [PATCH 1/2] added getter for string_response content --- src/httpserver/string_response.hpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/httpserver/string_response.hpp b/src/httpserver/string_response.hpp index d2bff4a8..1d122f89 100644 --- a/src/httpserver/string_response.hpp +++ b/src/httpserver/string_response.hpp @@ -55,6 +55,10 @@ class string_response : public http_response { MHD_Response* get_raw_response(); + const std::string& get_content() const noexcept { + return content; + } + private: std::string content = ""; }; From 132a24e84a66034832f5993cb7d4958030d5bd18 Mon Sep 17 00:00:00 2001 From: Harald Siegmund Date: Tue, 2 May 2023 12:51:43 +0200 Subject: [PATCH 2/2] added getter for string_response content --- src/httpserver/string_response.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/httpserver/string_response.hpp b/src/httpserver/string_response.hpp index 1d122f89..527b3966 100644 --- a/src/httpserver/string_response.hpp +++ b/src/httpserver/string_response.hpp @@ -55,7 +55,7 @@ class string_response : public http_response { MHD_Response* get_raw_response(); - const std::string& get_content() const noexcept { + const std::string& get_content() const { return content; }