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

Issue 19637005: Allow HttpServer response to include custom headers. (Closed)

Created:
7 years, 5 months ago by kkania
Modified:
7 years, 5 months ago
CC:
chromium-reviews, cbentzel+watch_chromium.org, vsevik, jam, yurys, joi+watch-content_chromium.org, paulirish+reviews_chromium.org, darin-cc_chromium.org, aandrey+blink_chromium.org, pfeldman
Visibility:
Public.

Description

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 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=213227

Patch Set 1 : . #

Total comments: 9

Patch Set 2 : address comments #

Total comments: 3

Patch Set 3 : address comments #

Patch Set 4 : fix cloud print #

Patch Set 5 : accessors #

Patch Set 6 : rebase, add back original Send method #

Unified diffs Side-by-side diffs Delta from patch set Stats (+206 lines, -47 lines) Patch
M cloud_print/gcp20/prototype/privet_http_server.h View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
M content/browser/devtools/devtools_http_handler_impl.h View 1 chunk +1 line, -0 lines 0 comments Download
M content/browser/devtools/devtools_http_handler_impl.cc View 1 2 3 4 5 2 chunks +5 lines, -8 lines 0 comments Download
M net/net.gyp View 1 2 3 4 5 3 chunks +4 lines, -0 lines 0 comments Download
M net/server/http_connection.h View 2 chunks +2 lines, -3 lines 0 comments Download
M net/server/http_connection.cc View 1 2 2 chunks +3 lines, -18 lines 0 comments Download
M net/server/http_server.h View 1 2 3 4 5 2 chunks +2 lines, -0 lines 0 comments Download
M net/server/http_server.cc View 1 2 3 4 5 3 chunks +14 lines, -6 lines 0 comments Download
A net/server/http_server_response_info.h View 1 2 3 4 1 chunk +46 lines, -0 lines 0 comments Download
A net/server/http_server_response_info.cc View 1 2 3 4 1 chunk +67 lines, -0 lines 0 comments Download
A net/server/http_server_response_info_unittest.cc View 1 2 3 4 1 chunk +51 lines, -0 lines 0 comments Download
M net/server/web_socket.cc View 1 3 chunks +10 lines, -12 lines 0 comments Download

Messages

Total messages: 15 (0 generated)
kkania
Tested manually with remote debugger and chromedriver also. Only difference to remote debugger clients should ...
7 years, 5 months ago (2013-07-18 15:57:44 UTC) #1
pfeldman
lgtm https://codereview.chromium.org/19637005/diff/18001/net/server/http_server_response_info.cc File net/server/http_server_response_info.cc (right): https://codereview.chromium.org/19637005/diff/18001/net/server/http_server_response_info.cc#newcode20 net/server/http_server_response_info.cc:20: response.AddHeader("Content-Length", "0"); Lets use constants from net::HttpRequestHeaders (net::HttpRequestHeaders::kContentLength) ...
7 years, 5 months ago (2013-07-19 12:47:57 UTC) #2
kkania
mmenke: OWNERS approval https://codereview.chromium.org/19637005/diff/18001/net/server/http_server_response_info.cc File net/server/http_server_response_info.cc (right): https://codereview.chromium.org/19637005/diff/18001/net/server/http_server_response_info.cc#newcode20 net/server/http_server_response_info.cc:20: response.AddHeader("Content-Length", "0"); On 2013/07/19 12:47:57, pfeldman ...
7 years, 5 months ago (2013-07-19 15:28:36 UTC) #3
mmenke
LGTM https://codereview.chromium.org/19637005/diff/25001/net/server/http_server_response_info.cc File net/server/http_server_response_info.cc (right): https://codereview.chromium.org/19637005/diff/25001/net/server/http_server_response_info.cc#newcode23 net/server/http_server_response_info.cc:23: response.AddHeader(HttpRequestHeaders::kContentLength, "0"); Maybe SetBody("");? https://codereview.chromium.org/19637005/diff/25001/net/server/http_server_response_info.cc#newcode41 net/server/http_server_response_info.cc:41: const std::string& ...
7 years, 5 months ago (2013-07-19 16:17:44 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/kkania@chromium.org/19637005/41001
7 years, 5 months ago (2013-07-22 21:53:58 UTC) #5
commit-bot: I haz the power
Step "update" is always a major failure. Look at the try server FAQ for more ...
7 years, 5 months ago (2013-07-22 22:38:07 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/kkania@chromium.org/19637005/41001
7 years, 5 months ago (2013-07-22 22:50:14 UTC) #7
commit-bot: I haz the power
Sorry for I got bad news for ya. Compile failed with a clobber build on ...
7 years, 5 months ago (2013-07-22 23:03:17 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/kkania@chromium.org/19637005/65001
7 years, 5 months ago (2013-07-23 00:19:23 UTC) #9
kkania
scottbyer: OWNERS approval for cloud_print
7 years, 5 months ago (2013-07-23 00:46:27 UTC) #10
Scott Byer
LGTM for Cloud Print
7 years, 5 months ago (2013-07-23 02:19:13 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/kkania@chromium.org/19637005/82001
7 years, 5 months ago (2013-07-23 17:02:04 UTC) #12
commit-bot: I haz the power
Failed to apply patch for cloud_print/gcp20/prototype/privet_http_server.cc: While running patch -p1 --forward --force --no-backup-if-mismatch; patching file ...
7 years, 5 months ago (2013-07-23 17:02:14 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/kkania@chromium.org/19637005/101001
7 years, 5 months ago (2013-07-23 17:55:10 UTC) #14
commit-bot: I haz the power
7 years, 5 months ago (2013-07-23 21:29:14 UTC) #15
Message was sent while issue was closed.
Change committed as 213227

Powered by Google App Engine
This is Rietveld 408576698