Class CKResponse
In: lib/cgikit.rb
Parent: CKMessage

A response object that is sent to a browser by a CKAdapter object.

Getting a response object

You can get a response object by CKApplication#response or CKComponent#response.

Setting headers for a response object

To send HTTP response headers, append a pair of key and value to headers. For example,

 application.response.headers['Content-Type'] = 'text/html'

Attributes

status:Status code in HTTP. Default status is 200 ( OK ).
Methods
new    to_s   
Attributes
:status  [RW] 
Public Class methods
new( headers )
Public Instance methods
to_s()