diff options
author | gunsch@chromium.org <gunsch@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-04-15 18:48:33 +0000 |
---|---|---|
committer | gunsch@chromium.org <gunsch@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-04-15 18:48:33 +0000 |
commit | 4203d8d5d1e49d6b018e2391435baa3b764d4092 (patch) | |
tree | a45873b6db136b91025a84cc1abcdd577d68e730 /net/server/http_server.cc | |
parent | fc51e1f337d053fe58b0229b0cc9c77ae54e176d (diff) | |
download | chromium_src-4203d8d5d1e49d6b018e2391435baa3b764d4092.zip chromium_src-4203d8d5d1e49d6b018e2391435baa3b764d4092.tar.gz chromium_src-4203d8d5d1e49d6b018e2391435baa3b764d4092.tar.bz2 |
HttpServer: allows sending raw response data for nontypical responses.
BUG=347770
R=rsleevi@chromium.org,lcwu@chromium.org,byungchul@chromium.org
Review URL: https://codereview.chromium.org/212683006
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@263948 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/server/http_server.cc')
-rw-r--r-- | net/server/http_server.cc | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/net/server/http_server.cc b/net/server/http_server.cc index 85797b9..df77c36 100644 --- a/net/server/http_server.cc +++ b/net/server/http_server.cc @@ -47,6 +47,13 @@ void HttpServer::SendOverWebSocket(int connection_id, connection->web_socket_->Send(data); } +void HttpServer::SendRaw(int connection_id, const std::string& data) { + HttpConnection* connection = FindConnection(connection_id); + if (connection == NULL) + return; + connection->Send(data); +} + void HttpServer::SendResponse(int connection_id, const HttpServerResponseInfo& response) { HttpConnection* connection = FindConnection(connection_id); |