diff options
author | ericroman@google.com <ericroman@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-09-06 01:00:53 +0000 |
---|---|---|
committer | ericroman@google.com <ericroman@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-09-06 01:00:53 +0000 |
commit | 036d87726035ac500ba35ab41fdc9ef6128f0e4f (patch) | |
tree | 48f2abffad974fd7599616cd2fa7888f2a5d7fe8 /net/http/http_util.h | |
parent | 9b323e40ae67692745459f68920f5dab61aaaed3 (diff) | |
download | chromium_src-036d87726035ac500ba35ab41fdc9ef6128f0e4f.zip chromium_src-036d87726035ac500ba35ab41fdc9ef6128f0e4f.tar.gz chromium_src-036d87726035ac500ba35ab41fdc9ef6128f0e4f.tar.bz2 |
[new http] Normalize line continuations in response headers.
BUG=1272571
Review URL: http://codereview.chromium.org/458
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@1818 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/http/http_util.h')
-rw-r--r-- | net/http/http_util.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/net/http/http_util.h b/net/http/http_util.h index 0c31195..5bfb71a 100644 --- a/net/http/http_util.h +++ b/net/http/http_util.h @@ -46,6 +46,11 @@ class HttpUtil { return IsNonCoalescingHeader(name.begin(), name.end()); } + // Return true if the character is HTTP "linear white space" (SP | HT). + // This definition corresponds with the HTTP_LWS macro, and does not match + // newlines. + static bool IsLWS(char c); + // Trim HTTP_LWS chars from the beginning and end of the string. static void TrimLWS(std::string::const_iterator* begin, std::string::const_iterator* end); @@ -66,6 +71,8 @@ class HttpUtil { // Used to iterate over the name/value pairs of HTTP headers. To iterate // over the values in a multi-value header, use ValuesIterator. + // See AssembleRawHeaders for joining line continuations (this iterator + // does not expect any). class HeadersIterator { public: HeadersIterator(std::string::const_iterator headers_begin, |