lib/httpx/plugins/stream.rb in httpx-0.12.0 vs lib/httpx/plugins/stream.rb in httpx-0.13.0

- old
+ new

@@ -3,10 +3,12 @@ module HTTPX module Plugins # # This plugin adds support for stream response (text/event-stream). # + # https://gitlab.com/honeyryderchuck/httpx/wikis/Stream + # module Stream module InstanceMethods private def request(*args, stream: false, **options) @@ -29,10 +31,10 @@ @request.stream end end module ResponseBodyMethods - def initialize(*, **) + def initialize(*) super @stream = @response.stream end def write(chunk)