class Async::HTTP::DeflateBody
def read
def read return if @stream.finished? if chunk = @body.read return @stream.deflate(chunk, Zlib::SYNC_FLUSH) else chunk = @stream.finish return chunk.empty? ? nil : chunk end end
def read return if @stream.finished? if chunk = @body.read return @stream.deflate(chunk, Zlib::SYNC_FLUSH) else chunk = @stream.finish return chunk.empty? ? nil : chunk end end