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

Unified Diff: net/http/http_util.h

Issue 2860323002: net: add IsMethodSafe() method to HttpUtil (Closed)
Patch Set: remove IsMethodSafe() from generic_url_request_job.cc Created 3 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 | « headless/public/util/generic_url_request_job.cc ('k') | net/http/http_util.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/http/http_util.h
diff --git a/net/http/http_util.h b/net/http/http_util.h
index cb3de359c1d58f101d0f08efdae5b5fd1721dbd9..5903238288a4ca1149414e3c11356fb59f9224f2 100644
--- a/net/http/http_util.h
+++ b/net/http/http_util.h
@@ -75,6 +75,9 @@ class NET_EXPORT HttpUtil {
base::Time now,
base::TimeDelta* retry_after);
+ // True if the request method is "safe" (per section 4.2.1 of RFC 7231).
+ static bool IsMethodSafe(const std::string& method);
+
// Returns true if it is safe to allow users and scripts to specify the header
// named |name|.
static bool IsSafeHeader(const std::string& name);
« no previous file with comments | « headless/public/util/generic_url_request_job.cc ('k') | net/http/http_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698