class Async::HTTP::Body::Inflate
def read
def read return if @stream.closed? if chunk = super @input_size += chunk.bytesize chunk = @stream.inflate(chunk) @output_size += chunk.bytesize else chunk = @stream.finish @output_size += chunk.bytesize @stream.close end return chunk.empty? ? nil : chunk end