Public Instance methods
request(*args, stream: false, **options)
[show source]
# File lib/httpx/plugins/stream.rb 103 def request(*args, stream: false, **options) 104 return super(*args, **options) unless stream 105 106 requests = args.first.is_a?(Request) ? args : build_requests(*args, options) 107 raise Error, "only 1 response at a time is supported for streaming requests" unless requests.size == 1 108 109 request = requests.first 110 111 StreamResponse.new(request, self) 112 end