class Protocol::HTTP::Body::Writable
def write(chunk)
@raises [Closed] If the body has been closed without error.
@parameter chunk [String] The chunk to write.
Write a single chunk to the body. Signal completion by calling {close_write}.
def write(chunk) if @queue.closed? raise(@error || Closed) end @queue.push(chunk) @count += 1 end