refactor: Make HTTPResponse a struct since all fields are public

This commit is contained in:
Hodlinator
2026-06-01 14:27:39 +02:00
parent 69c61f9f2f
commit e5be0dc35e
3 changed files with 22 additions and 26 deletions

View File

@@ -137,14 +137,10 @@ struct HTTPVersion {
/// @}
};
class HTTPResponse
{
public:
HTTPVersion m_version;
HTTPStatusCode m_status{HTTP_INTERNAL_SERVER_ERROR};
HTTPHeaders m_headers;
struct HTTPResponse {
HTTPVersion version;
HTTPStatusCode status{HTTP_INTERNAL_SERVER_ERROR};
HTTPHeaders headers;
std::string StringifyHeaders() const;
};