Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(360)

Unified Diff: net/server/http_server_request_info.h

Issue 274813002: HttpServer: Handling of multiple header fields with the same name and multiple values of "Connectio… (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: HasHeaderValue always worked as if header_value=="upgrade" Created 6 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « net/server/http_server.cc ('k') | net/server/http_server_request_info.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/server/http_server_request_info.h
diff --git a/net/server/http_server_request_info.h b/net/server/http_server_request_info.h
index 183da1c07f3d6e91fe4eff31b4786d62cb4540d6..1b02655b74219f33e01588f461af56882f9ff913 100644
--- a/net/server/http_server_request_info.h
+++ b/net/server/http_server_request_info.h
@@ -25,6 +25,12 @@ class HttpServerRequestInfo {
// lower case.
std::string GetHeaderValue(const std::string& header_name) const;
+ // Checks for item in comma-separated header value for given header name.
+ // Both |header_name| and |header_value| should be lower case.
+ bool HasHeaderValue(
+ const std::string& header_name,
+ const std::string& header_value) const;
+
// Request peer address.
IPEndPoint peer;
« no previous file with comments | « net/server/http_server.cc ('k') | net/server/http_server_request_info.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698