Sha256: 2e85f152c514cee2a4929bc848418aaf3b5579ab72a1ef95ee3f1e6157f261f9

Contents?: true

Size: 1020 Bytes

Versions: 9

Compression:

Stored size: 1020 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::Authentication::InstanceMethods
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
httpx-0.14.5 sig/plugins/follow_redirects.rbs
httpx-0.14.4 sig/plugins/follow_redirects.rbs
httpx-0.14.3 sig/plugins/follow_redirects.rbs
httpx-0.14.2 sig/plugins/follow_redirects.rbs
httpx-0.14.1 sig/plugins/follow_redirects.rbs
httpx-0.14.0 sig/plugins/follow_redirects.rbs
httpx-0.13.2 sig/plugins/follow_redirects.rbs
httpx-0.13.1 sig/plugins/follow_redirects.rbs
httpx-0.13.0 sig/plugins/follow_redirects.rbs