Module: Sinatra::Streaming
- Included in:
- EventContext
- Defined in:
- lib/codebutler/sinatra.rb
Overview
Adapted from actionpack Methods for sending files and streams to the browser instead of rendering.
Defined Under Namespace
Classes: FileStreamer, MissingFile
Constant Summary collapse
- DEFAULT_SEND_FILE_OPTIONS =
{ :type => 'application/octet-stream'.freeze, :disposition => 'attachment'.freeze, :stream => true, :buffer_size => 4096 }.freeze