class Async::HTTP::Body::Readable
A generic base class for wrapping body instances. Typically you’d override ‘#read`.
def close(error = nil)
def close(error = nil) end
def each
def each while chunk = self.read yield chunk # chunk.clear end ensure self.close($!) end
def empty?
def empty? false end
def finish
def finish # Internally, this invokes `self.each` which then invokes `self.close`. Buffered.for(self) end
def join
def join buffer = IO::Buffer.new self.each do |chunk| buffer << chunk chunk.clear end return buffer end
def length
def length nil end
def read
def read nil end