Module

Streaming

Methods for sending files and streams to the browser instead of rendering.

Constants
DEFAULT_SEND_FILE_OPTIONS
X_SENDFILE_HEADER
Protected Methods
send_data Send binary data to the user as a file download. May set content type, apparent file name, and specify whether to show data inline or download as an attachment.
send_file Sends the file by streaming it 4096 bytes at a time. This way the whole file doesn’t need to be read into memory at once. This makes it feasible to send even large files.
Private Methods
send_file_headers!
Comments

Have your say
Please use Textile formatting (click here for a cheat sheet). Use <code/> and <pre/> for code samples.
Click here to login with OpenID to to post comments.