Sha256: 09179914ec96a66d0ab8791dd33ccfc0dcb54b38b9c0f233f2eebff80ec3f3b2

Contents?: true

Size: 905 Bytes

Versions: 47

Compression:

Stored size: 905 Bytes

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?
      end

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

      module InstanceMethods
        def max_redirects: (_ToI) -> instance

        def build_redirect_request: (Request, Response, Options) -> Request
        def __get_location_from_response: (Response) -> (URI::HTTP | URI::HTTPS)
      end

      module RequestMethods
        def redirect_request: () -> Request
        def redirect_request=: (Request) -> void
        def max_redirects: () -> Integer
      end
    end

    type sessionFollowRedirects = Session & FollowRedirects::InstanceMethods
  end
end

Version data entries

47 entries across 47 versions & 1 rubygems

Version Path
httpx-0.24.7 sig/plugins/follow_redirects.rbs
httpx-0.24.6 sig/plugins/follow_redirects.rbs
httpx-0.24.5 sig/plugins/follow_redirects.rbs
httpx-0.24.4 sig/plugins/follow_redirects.rbs
httpx-0.24.3 sig/plugins/follow_redirects.rbs
httpx-0.24.2 sig/plugins/follow_redirects.rbs
httpx-0.24.1 sig/plugins/follow_redirects.rbs
httpx-0.24.0 sig/plugins/follow_redirects.rbs
httpx-0.23.4 sig/plugins/follow_redirects.rbs
httpx-0.23.3 sig/plugins/follow_redirects.rbs
httpx-0.23.2 sig/plugins/follow_redirects.rbs
httpx-0.23.1 sig/plugins/follow_redirects.rbs
httpx-0.23.0 sig/plugins/follow_redirects.rbs
httpx-0.22.5 sig/plugins/follow_redirects.rbs
httpx-0.22.4 sig/plugins/follow_redirects.rbs
httpx-0.22.3 sig/plugins/follow_redirects.rbs
httpx-0.22.2 sig/plugins/follow_redirects.rbs
httpx-0.22.1 sig/plugins/follow_redirects.rbs
httpx-0.22.0 sig/plugins/follow_redirects.rbs
httpx-0.21.1 sig/plugins/follow_redirects.rbs