class Async::HTTP::Body::Readable
A generic base class for wrapping body instances. Typically you’d override ‘#read`.
def close
def close Buffered.for(self) end
def each
def each return to_enum unless block_given? while chunk = self.read yield chunk end rescue stop($!) raise end
def empty?
def empty? false end
def join
def join buffer = IO::BinaryString.new self.each do |chunk| buffer << chunk end return buffer end
def read
def read nil end
def stop(error)
def stop(error) end