Sha256: 956065150c2d63f0f681d1fcfa0f0c2bf8f96621b190057fe088197e52380138

Contents?: true

Size: 1.11 KB

Versions: 8

Compression:

Stored size: 1.11 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 max_redirects=: (int) -> Integer
        def with_max_redirects: (int) -> instance

        def follow_insecure_redirects: () -> bool?
        def follow_insecure_redirects=: (bool) -> bool
        def with_follow_insecure_redirects: (bool) -> instance
      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

8 entries across 8 versions & 1 rubygems

Version Path
httpx-0.12.0 sig/plugins/follow_redirects.rbs
httpx-0.11.3 sig/plugins/follow_redirects.rbs
httpx-0.11.2 sig/plugins/follow_redirects.rbs
httpx-0.11.1 sig/plugins/follow_redirects.rbs
httpx-0.11.0 sig/plugins/follow_redirects.rbs
httpx-0.10.2 sig/plugins/follow_redirects.rbs
httpx-0.10.1 sig/plugins/follow_redirects.rbs
httpx-0.10.0 sig/plugins/follow_redirects.rbs