Sha256: 4ded6559bf5968c3f3dd21915a1c7f97da4986e3cbfd5e898b9f4f8ea63d7fe3

Contents?: true

Size: 1021 Bytes

Versions: 5

Compression:

Stored size: 1021 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 max_redirects=: (int) -> Integer

        def follow_insecure_redirects: () -> bool?
        def follow_insecure_redirects=: (bool) -> 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 & Plugins::FollowRedirects::InstanceMethods
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
httpx-0.15.4 sig/plugins/follow_redirects.rbs
httpx-0.15.3 sig/plugins/follow_redirects.rbs
httpx-0.15.2 sig/plugins/follow_redirects.rbs
httpx-0.15.1 sig/plugins/follow_redirects.rbs
httpx-0.15.0 sig/plugins/follow_redirects.rbs