lib/async/http/client.rb in async-http-0.52.5 vs lib/async/http/client.rb in async-http-0.53.0

- old
+ new

@@ -23,11 +23,11 @@ require 'async/io/endpoint' require 'async/io/stream' require 'async/pool/controller' -require 'protocol/http/body/streamable' +require 'protocol/http/body/completable' require 'protocol/http/methods' require_relative 'protocol' module Async @@ -141,10 +141,10 @@ def make_response(request, connection) response = request.call(connection) # The connection won't be released until the body is completely read/released. - ::Protocol::HTTP::Body::Streamable.wrap(response) do + ::Protocol::HTTP::Body::Completable.wrap(response) do @pool.release(connection) end return response end