summaryrefslogtreecommitdiffstats
path: root/net/http/http_response_headers.cc
diff options
context:
space:
mode:
authorahendrickson@google.com <ahendrickson@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2010-03-25 19:56:12 +0000
committerahendrickson@google.com <ahendrickson@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2010-03-25 19:56:12 +0000
commit3f662f158a7ba94d3e1b235262a975474c117fad (patch)
treefbb8952a875ab16c3a6e766257548084e33aae9f /net/http/http_response_headers.cc
parent8bb174c2d00c18fb682ab9bcbfa1f5f3f0ed2281 (diff)
downloadchromium_src-3f662f158a7ba94d3e1b235262a975474c117fad.zip
chromium_src-3f662f158a7ba94d3e1b235262a975474c117fad.tar.gz
chromium_src-3f662f158a7ba94d3e1b235262a975474c117fad.tar.bz2
SpdySession now sets the following fields in HttpResponseInfo:
request_time response_time vary_data There is also a unit test to exercise the new functionality. - Changed CreateSpdyHeadersFromHttpRequest() to use std::string::append() rather than std::string::operator+() to append a single '\0' character to the string, as the former does nothing. - Now using SpdyFramer. - The unit tests now include all server push cases. BUG=34505 TEST=Run netunittests.exe --gtest_filter=SpdyNetworkTransactionTest.* Review URL: http://codereview.chromium.org/634002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@42660 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/http/http_response_headers.cc')
-rw-r--r--net/http/http_response_headers.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/net/http/http_response_headers.cc b/net/http/http_response_headers.cc
index 82272bb..ec3ec3b 100644
--- a/net/http/http_response_headers.cc
+++ b/net/http/http_response_headers.cc
@@ -464,6 +464,10 @@ bool HttpResponseHeaders::HasHeaderValue(const std::string& name,
return false;
}
+bool HttpResponseHeaders::HasHeader(const std::string& name) const {
+ return FindHeader(0, name) != std::string::npos;
+}
+
// Note: this implementation implicitly assumes that line_end points at a valid
// sentinel character (such as '\0').
// static