summaryrefslogtreecommitdiffstats
path: root/net/http/http_util.h
diff options
context:
space:
mode:
Diffstat (limited to 'net/http/http_util.h')
-rw-r--r--net/http/http_util.h7
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,