diff options
author | kkania@chromium.org <kkania@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-07-23 21:29:11 +0000 |
---|---|---|
committer | kkania@chromium.org <kkania@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-07-23 21:29:11 +0000 |
commit | c700fd159b4c094530244eb8e482376160823b5e (patch) | |
tree | 148e2676f0cf9fd95967757c26a7927c228ae9e2 /net/server/http_server.h | |
parent | f23a4495c988573cd612c6a58627c2eb3743bc23 (diff) | |
download | chromium_src-c700fd159b4c094530244eb8e482376160823b5e.zip chromium_src-c700fd159b4c094530244eb8e482376160823b5e.tar.gz chromium_src-c700fd159b4c094530244eb8e482376160823b5e.tar.bz2 |
Allow HttpServer response to include custom headers.
This is done by introducing a simple HttpServerResponseInfo class, and
changing the root HttpServer::Send to accept it instead of a status, data, and
mime type.
BUG=none
Review URL: https://chromiumcodereview.appspot.com/19637005
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@213227 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/server/http_server.h')
-rw-r--r-- | net/server/http_server.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/net/server/http_server.h b/net/server/http_server.h index b5ba037..f434575 100644 --- a/net/server/http_server.h +++ b/net/server/http_server.h @@ -17,6 +17,7 @@ namespace net { class HttpConnection; class HttpServerRequestInfo; +class HttpServerResponseInfo; class IPEndPoint; class WebSocket; @@ -46,6 +47,7 @@ class HttpServer : public StreamListenSocket::Delegate, void AcceptWebSocket(int connection_id, const HttpServerRequestInfo& request); void SendOverWebSocket(int connection_id, const std::string& data); + void SendResponse(int connection_id, const HttpServerResponseInfo& response); void Send(int connection_id, HttpStatusCode status_code, const std::string& data, |