class Protocol::HTTP::Body::Stream
def write(buffer)
@raises [IOError] If the stream is not writable.
@parameter buffer [String] The data to write.
Write data to the underlying stream.
def write(buffer) if @output @output.write(buffer) return buffer.bytesize else raise IOError, "Stream is not writable, output has been closed!" end end