| Class | Waves::Response |
| In: |
lib/runtime/response.rb
|
| Parent: | Object |
Waves::Response represents an HTTP response and has methods for constructing a response. These include setters for content_type, content_length, location, and expires headers. You may also set the headers directly using the [] operator. See Rack::Response for documentation of any method not defined here.
| request | [R] |
Finish the response. This will send the response back to the client, so you shouldn‘t attempt to further modify the response once this method is called. You don‘t usually need to call it yourself, since it is called by the dispatcher once request processing is finished.
# File lib/runtime/response.rb, line 34
34: def finish ; @response.finish ; end
Methods not explicitly defined by Waves::Response are delegated to Rack::Response. Check the Rack documentation for more informations
# File lib/runtime/response.rb, line 38
38: def method_missing(name,*args)
39: @response.send(name,*args)
40: end