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).

<std:http>:2144

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

<std:http>:2148

Methods

def status -> Int

The last redirect's status.

<std:http>:2153

def headers -> HTTP::Headers

The last redirect's headers (its location).

<std:http>:2155

def url -> URI

The URL that answered with the last redirect.

<std:http>:2157