Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(498)

Unified Diff: net/server/http_server_response_info.h

Issue 296053012: Replace StreamListenSocket with StreamSocket in HttpServer. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix compilation error Created 6 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: net/server/http_server_response_info.h
diff --git a/net/server/http_server_response_info.h b/net/server/http_server_response_info.h
index d6cedaa844664d295621912f1ac199036c324a8a..bbb76d8836d291130343c3c467680b304b2d2023 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;

Powered by Google App Engine
This is Rietveld 408576698