lib/httpx/plugins/stream.rb in httpx-0.22.0 vs lib/httpx/plugins/stream.rb in httpx-0.22.1
- old
+ new
@@ -93,11 +93,9 @@
#
# https://gitlab.com/honeyryderchuck/httpx/wikis/Stream
#
module Stream
module InstanceMethods
- private
-
def request(*args, stream: false, **options)
return super(*args, **options) unless stream
requests = args.first.is_a?(Request) ? args : build_requests(*args, options)
raise Error, "only 1 response at a time is supported for streaming requests" unless requests.size == 1