diff options
Diffstat (limited to 'src/lib/utils/http_util')
-rw-r--r-- | src/lib/utils/http_util/http_util.h | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/src/lib/utils/http_util/http_util.h b/src/lib/utils/http_util/http_util.h index aa8e1cbc0..528a4fae8 100644 --- a/src/lib/utils/http_util/http_util.h +++ b/src/lib/utils/http_util/http_util.h @@ -19,7 +19,7 @@ namespace Botan { namespace HTTP { -struct Response +class Response { public: Response() : m_status_code(0), m_status_message("Uninitialized") {} @@ -56,11 +56,12 @@ struct Response /** * HTTP_Error Exception */ -struct BOTAN_PUBLIC_API(2,0) HTTP_Error final : public Exception +class BOTAN_PUBLIC_API(2,0) HTTP_Error final : public Exception { - explicit HTTP_Error(const std::string& msg) : - Exception("HTTP error " + msg) - {} + public: + explicit HTTP_Error(const std::string& msg) : + Exception("HTTP error " + msg) + {} }; BOTAN_PUBLIC_API(2,0) std::ostream& operator<<(std::ostream& o, const Response& resp); |