diff options
Diffstat (limited to 'net/http/http_response_headers.h')
-rw-r--r-- | net/http/http_response_headers.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/net/http/http_response_headers.h b/net/http/http_response_headers.h index f1512b4..c071389 100644 --- a/net/http/http_response_headers.h +++ b/net/http/http_response_headers.h @@ -171,6 +171,10 @@ class HttpResponseHeaders // location of the redirect is optionally returned if location is non-null. bool IsRedirect(std::string* location) const; + // Returns true if the HTTP response code passed in corresponds to a + // redirect. + static bool IsRedirectResponseCode(int response_code); + // Returns true if the response cannot be reused without validation. The // result is relative to the current_time parameter, which is a parameter to // support unit testing. The request_time parameter indicates the time at |