class X::RedirectHandler
- X::RedirectHandler
- Reference
- Object
Overview
Handles HTTP redirects
Defined in:
x/redirect_handler.crConstant Summary
-
DEFAULT_MAX_REDIRECTS =
10
Constructors
Instance Method Summary
- #authenticator : BearerTokenAuthenticator | OauthAuthenticator
- #authenticator=(authenticator : BearerTokenAuthenticator | OauthAuthenticator)
- #connection : Connection
- #connection=(connection : Connection)
- #handle_redirects(response : HTTP::Client::Response, original_request : HTTP::Request, original_base_url : URI, redirect_count : Int32 = 0)
- #max_redirects : Int32
- #max_redirects=(max_redirects : Int32)
- #request_builder : RequestBuilder
- #request_builder=(request_builder : RequestBuilder)
Constructor Detail
def self.new(authenticator : X::BearerTokenAuthenticator | X::OauthAuthenticator, connection : X::Connection, request_builder : X::RequestBuilder, max_redirects : Int32 = DEFAULT_MAX_REDIRECTS)
#
Instance Method Detail
def handle_redirects(response : HTTP::Client::Response, original_request : HTTP::Request, original_base_url : URI, redirect_count : Int32 = 0)
#