mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-09-12 21:52:53 +02:00
refactor: Make HTTPResponse a struct since all fields are public
This commit is contained in:
@@ -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;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user