aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/utils/http_util
diff options
context:
space:
mode:
authorJack Lloyd <[email protected]>2017-09-30 11:28:02 -0400
committerJack Lloyd <[email protected]>2017-09-30 11:28:02 -0400
commitf6dc3db8bb7e31569ed1a6042771e3f529aefab8 (patch)
tree9604495c046e1e52cc1d8e552879f04fe8599631 /src/lib/utils/http_util
parente6dfcaa00d82a2fff5973bd2721dc09562d64199 (diff)
Use class instead of struct for objects with member functions
Flagged by Sonar and quite reasonable
Diffstat (limited to 'src/lib/utils/http_util')
-rw-r--r--src/lib/utils/http_util/http_util.h11
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);