Sha256: 2c495411ecd2c7ba7b34fa56ad913617396d51d4488c2f5d2b717baeae1b339a

Contents?: true

Size: 829 Bytes

Versions: 6

Compression:

Stored size: 829 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 __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

6 entries across 6 versions & 1 rubygems

Version Path
httpx-1.1.2 sig/plugins/follow_redirects.rbs
httpx-1.1.1 sig/plugins/follow_redirects.rbs
httpx-1.1.0 sig/plugins/follow_redirects.rbs
httpx-1.0.2 sig/plugins/follow_redirects.rbs
httpx-1.0.1 sig/plugins/follow_redirects.rbs
httpx-1.0.0 sig/plugins/follow_redirects.rbs