class Protocol::HTTP::Body::Stream
def close_write(error = nil)
If, while generating the data that is written to this stream, an error is encountered, it should be passed to this method.
Close the output body.
def close_write(error = nil) if output = @output @output = nil output.close_write(error) end end