diff options
Diffstat (limited to 'net/server/http_server_response_info.h')
-rw-r--r-- | net/server/http_server_response_info.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/net/server/http_server_response_info.h b/net/server/http_server_response_info.h index d6cedaa..bbb76d8 100644 --- a/net/server/http_server_response_info.h +++ b/net/server/http_server_response_info.h @@ -27,6 +27,9 @@ class HttpServerResponseInfo { // This also adds an appropriate Content-Length header. void SetBody(const std::string& body, const std::string& content_type); + // Sets content-length and content-type. Body should be sent separately. + void SetContentHeaders(size_t content_length, + const std::string& content_type); std::string Serialize() const; |