class HTTP::Client::Response

Defined in:

http_redirects.cr

Instance Method Summary

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


[View source]
def request : HTTP::Request? #

[View source]
def request=(request : Nil | HTTP::Request) #

[View source]