class HTTP::Client::TooManyRedirects < HTTP::Client::Error
More redirects than max_redirects. An exception is Shareable and
a response's body is not, so it carries the last redirect's status,
headers and URL (its body was read or dropped).
Class methods
def self.new(status: Int, headers: HTTP::Headers, url: URI, max: Int) -> HTTP::Client::TooManyRedirects
An exception with message, not yet raised.
from Exception
Methods
def status -> Int
The last redirect's status.
def headers -> HTTP::Headers
The last redirect's headers (its location).
def url -> URI
The URL that answered with the last redirect.