class HTTP::Client::Response
- HTTP::Client::Response
- Reference
- Object
Defined in:
http_redirects.crInstance Method Summary
-
#redirect?
Returns
true
if the response status code is between 300 and 399. - #request : HTTP::Request?
- #request=(request : Nil | HTTP::Request)
Instance Method Detail
def redirect?
#
Returns true
if the response status code is between 300 and 399.
strictly there are only 5 defined
300 Multiple Choices
301 Permanent redirect
302 Temporary redirect
303 See Other
304 Not Modified
305 Must Use Proxy
306 Unused
307 Temporary Redirect
308 Permanent Redirect
SEE http://www.restapitutorial.com/httpstatuscodes.html