Class: Protocol::HTTP::Body::Streamable::ResponseBody
- Defined in:
- lib/protocol/http/body/streamable.rb
Overview
A response body is used on the server side to generate the response body using a block.
Instance Method Summary collapse
-
#close(error = nil) ⇒ Object
Close will be invoked when all the output is written.
Methods inherited from Body
#call, #close_input, #close_output, #initialize, #read, #stream?
Methods inherited from Readable
#as_json, #buffered, #call, #discard, #each, #empty?, #finish, #join, #length, #read, #ready?, #rewind, #rewindable?, #stream?, #to_json
Constructor Details
This class inherits a constructor from Protocol::HTTP::Body::Streamable::Body
Instance Method Details
#close(error = nil) ⇒ Object
Close will be invoked when all the output is written.
157 158 159 |
# File 'lib/protocol/http/body/streamable.rb', line 157 def close(error = nil) self.close_output(error) end |