class Async::HTTP::Body::Stream
def read_partial(size = nil)
def read_partial(size = nil) if @buffer buffer = @buffer @buffer = nil else buffer = read_next end if buffer and size if buffer.bytesize > size @buffer = buffer.byteslice(size, buffer.bytesize) buffer = buffer.byteslice(0, size) end end return buffer end