Chromium Code Reviews| Index: net/http/http_util.h |
| diff --git a/net/http/http_util.h b/net/http/http_util.h |
| index 5903238288a4ca1149414e3c11356fb59f9224f2..ae17367ea62b8d5906f0917853df4d2279113f7e 100644 |
| --- a/net/http/http_util.h |
| +++ b/net/http/http_util.h |
| @@ -78,6 +78,9 @@ class NET_EXPORT HttpUtil { |
| // 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 the request method is idempotent. |
|
mmenke
2017/05/09 15:52:49
nit: Reference RFC? (4.2.2 of RFC 7231)
tfarina
2017/05/09 16:50:39
Done.
|
| + static bool IsMethodIdempotent(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); |