mirror of
				https://github.com/HoneyryderChuck/httpx.git
				synced 2025-11-04 00:01:41 -05:00 
			
		
		
		
	
		
			
				
	
	
		
			40 lines
		
	
	
		
			946 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
			
		
		
	
	
			40 lines
		
	
	
		
			946 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
module HTTPX
 | 
						|
  module Plugins
 | 
						|
    module Stream
 | 
						|
      module InstanceMethods
 | 
						|
        private
 | 
						|
 | 
						|
#        def request: (*Request, stream: false, **untyped) -> (response | Array[response])
 | 
						|
#                   | (*untyped, stream: false, **untyped) -> (response | Array[response])
 | 
						|
      end
 | 
						|
 | 
						|
      module RequestMethods
 | 
						|
        attr_accessor stream: StreamResponse?
 | 
						|
      end
 | 
						|
 | 
						|
      module ResponseMethods
 | 
						|
        def stream: () -> StreamResponse?
 | 
						|
      end
 | 
						|
 | 
						|
      class StreamResponse
 | 
						|
        include _ToS
 | 
						|
 | 
						|
        def each: () { (String) -> void } -> void
 | 
						|
                | () -> Enumerable[String]
 | 
						|
 | 
						|
        def each_line: () { (String) -> void } -> void
 | 
						|
                     | () -> Enumerable[String]
 | 
						|
 | 
						|
        def on_chunk: (string) -> void
 | 
						|
 | 
						|
        private
 | 
						|
 | 
						|
        def response: () -> response
 | 
						|
        def initialize: (Request, Session) -> untyped
 | 
						|
      end
 | 
						|
    end
 | 
						|
 | 
						|
    type sessionStream = Session & Plugins::Stream::InstanceMethods
 | 
						|
  end
 | 
						|
end
 |