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 return to_enum unless block_given? while chunk = self.read yield chunk # chunk.clear end ensure self.close($!) end
def empty?
def empty? false end
def finish
def finish buffered = Buffered.for(self) self.close return buffered 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