class Protocol::HTTP::Body::Writable
def output
@parameter output [Output] The output wrapper.
@yields {|output| ...} if a block is given.
If a block is given, and the block raises an error, the error will used to close the body by invoking {close} with the error.
Create an output wrapper which can be used to write chunks to the body.
def output output = Output.new(self) unless block_given? return output end begin yield output rescue => error raise error ensure output.close(error) end end