Module: ActionController::Streaming

Defined in:
lib/action_controller/streaming.rb

Overview

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

Constant Summary collapse

DEFAULT_SEND_FILE_OPTIONS =
{
  :type         => 'application/octet-stream'.freeze,
  :disposition  => 'attachment'.freeze,
  :stream       => true,
  :buffer_size  => 4096,
  :x_sendfile   => false
}.freeze
X_SENDFILE_HEADER =
'X-Sendfile'.freeze