Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion src/httpserver/http_response.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -143,13 +143,14 @@ class http_response
virtual void decorate_response(MHD_Response* response);
virtual int enqueue_response(MHD_Connection* connection, MHD_Response* response);

protected:
private:
int response_code = -1;

std::map<std::string, std::string, http::header_comparator> headers;
std::map<std::string, std::string, http::header_comparator> footers;
std::map<std::string, std::string, http::header_comparator> cookies;

protected:
friend std::ostream &operator<< (std::ostream &os, const http_response &r);
};

Expand Down