Chromium Code Reviews| Index: net/http/http_util.h |
| diff --git a/net/http/http_util.h b/net/http/http_util.h |
| index 14117c00289d22bd54c28398c28fdb99eb72a59f..c3da65b343abd4e7a2d2dafccdd94d98075828f2 100644 |
| --- a/net/http/http_util.h |
| +++ b/net/http/http_util.h |
| @@ -75,6 +75,12 @@ 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 true if |value| is a valid HTTP header value. |
|
mmenke
2014/08/25 16:32:44
This isn't accurate. It doesn't do a full validat
robwu
2014/08/25 18:58:29
Done.
|
| + 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|. |