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 14117c0..bde65dc 100644
--- a/net/http/http_util.h
+++ b/net/http/http_util.h
@@ -75,6 +75,13 @@ class NET_EXPORT HttpUtil {
// named |name|.
static bool IsSafeHeader(const std::string& name);
+ // Returns true if |name| is a valid HTTP header name.
+ static bool IsValidHeaderName(const std::string& name);
+
+ // Returns false if |value| contains NUL or CRLF. This method does not perform
+ // a fully RFC-2616-compliant header value validation.
+ static bool IsValidHeaderValue(const std::string& value);
+
// Strips all header lines from |headers| whose name matches
// |headers_to_remove|. |headers_to_remove| is a list of null-terminated
// lower-case header names, with array length |headers_to_remove_len|.