mirror of
				https://github.com/HoneyryderChuck/httpx.git
				synced 2025-11-03 00:03:30 -05:00 
			
		
		
		
	removed with_ options, which are unsupported, undocumented and irrelevant (contrary to the similar with session methods)
		
			
				
	
	
		
			36 lines
		
	
	
		
			1020 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
			
		
		
	
	
			36 lines
		
	
	
		
			1020 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
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
 |