Sha256: 56fb67fb07be5ec01fa8a132f734d18a25efc8e5299ba6e8664290b8ccba0076

Contents?: true

Size: 1.06 KB

Versions: 3

Compression:

Stored size: 1.06 KB

Contents

module HTTPX
  InsecureRedirectError: singleton(Error)

  module Plugins
    module FollowRedirects
      MAX_REDIRECTS: Integer
      REDIRECT_STATUS: Range[Integer]

      interface _FollowRedirectsOptions
        def max_redirects: () -> Integer?

        def follow_insecure_redirects: () -> bool?

        def allow_auth_to_other_origins: () -> bool?
      end

      def self.extra_options: (Options) -> (Options & _FollowRedirectsOptions)

      module InstanceMethods
        def max_redirects: (_ToI) -> instance

        def redirect_request_headers: (http_uri original_uri, http_uri redirect_uri, Headers headers, Options & _FollowRedirectsOptions options) -> Headers

        def __get_location_from_response: (Response) -> (URI::HTTP | URI::HTTPS)
      end

      module RequestMethods
        attr_accessor root_request: instance?

        def redirect_request: () -> instance

        def redirect_request=: (Request) -> void

        def max_redirects: () -> Integer
      end
    end

    type sessionFollowRedirects = Session & FollowRedirects::InstanceMethods
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
httpx-1.1.5 sig/plugins/follow_redirects.rbs
httpx-1.1.4 sig/plugins/follow_redirects.rbs
httpx-1.1.3 sig/plugins/follow_redirects.rbs