Module that is mixed in to all implemented controllers.
| Public Methods | |
|---|---|
| delete_ |
Marks a cookie as deleted and gives it an expires stamp in the past. This method is used primarily internally in Merb. |
| nginx_ |
Uses the nginx specific +X-Accel-Redirect+ header to send a file directly from nginx. For more information, see the nginx wiki: wiki.codemongers.com/NginxXSendfile |
| redirect | Redirects to a URL. The url parameter can be either a relative URL (e.g., +/posts/34+) or a fully-qualified URL (e.g., +www.merbivore.com/+). |
| render_ |
Renders the block given as a parameter using chunked encoding. |
| render_ |
Returns a Proc that Mongrel can call later, allowing Merb to release the thread lock and render another request. |
| send_ |
Writes a chunk from render_chunked to the response that is sent back to the client. |
| send_ |
Sends a file over HTTP. When given a path to a file, it will set the right headers so that the static file is served directly. |
| set_ |
Sets a cookie to be included in the response. This method is used primarily internally in Merb. |
| stream_ |
Streams a file over HTTP. |
<code/>and<pre/>for code samples.