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

Unified Diff: net/server/http_server.h

Issue 243743005: HttpServer: allows sending raw response data for streamed responses. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: ASAN fixes. Created 6 years, 8 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
« no previous file with comments | « no previous file | net/server/http_server.cc » ('j') | net/server/http_server_unittest.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/server/http_server.h
diff --git a/net/server/http_server.h b/net/server/http_server.h
index 51bec95688926397444704793a7f96d24b4b1039..4309d122f1ead040eb28f2c2557a489b9fbff1b6 100644
--- a/net/server/http_server.h
+++ b/net/server/http_server.h
@@ -47,6 +47,10 @@ class HttpServer : public StreamListenSocket::Delegate,
void AcceptWebSocket(int connection_id,
const HttpServerRequestInfo& request);
void SendOverWebSocket(int connection_id, const std::string& data);
+ // Sends the provided data directly to the given connection. No validation is
+ // performed that data constitutes a valid HTTP response. A valid HTTP
+ // response may be split across multiple calls to SendRaw.
+ void SendRaw(int connection_id, const std::string& data);
void SendResponse(int connection_id, const HttpServerResponseInfo& response);
void Send(int connection_id,
HttpStatusCode status_code,
« no previous file with comments | « no previous file | net/server/http_server.cc » ('j') | net/server/http_server_unittest.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698