Class | Ramaze::Response |
In: |
lib/ramaze/response.rb
|
Parent: | Rack::Response |
Ramaze::Response is a small wrapper around Rack::Response that makes it easier to send response data to the browser from a Ramaze application.
@author Michael Fellinger @since 01-03-2008
Creates a new instance of the response class and processes the specified parameters. Once this has been done it calls Rack::Response#initialize.
@author Michael Fellinger @since 01-03-2008 @param [Array] body An array containing the data for the response body. @param [Fixnum] status The HTPP status code for the response. @param [Hash] header A hash containing additional headers and their
values.
@param [Proc] &block
Sets the body of the response to the given object.
@author Michael Fellinger @since 01-03-2008 @param [Object] obj The object to use as the response body.