--- !ruby/object:RI::MethodDescription 
aliases: []

block_params: 
comment: 
- !ruby/struct:SM::Flow::P 
  body: Uses the nginx specific +X-Accel-Redirect+ header to send a file directly from nginx.
- !ruby/struct:SM::Flow::H 
  level: 4
  text: Notes
- !ruby/struct:SM::Flow::P 
  body: Unless Content-Disposition is set before calling this method, it is set to attachment with streamed file name.
- !ruby/struct:SM::Flow::P 
  body: "For more information, see the nginx wiki: http://wiki.codemongers.com/NginxXSendfile"
- !ruby/struct:SM::Flow::P 
  body: "and the following sample gist: http://gist.github.com/11225"
- !ruby/struct:SM::Flow::P 
  body: "there's also example application up on GitHub:"
- !ruby/struct:SM::Flow::P 
  body: http://github.com/michaelklishin/nginx-x-accel-redirect-example-application/tree/master
- !ruby/struct:SM::Flow::H 
  level: 4
  text: Parameters
- !ruby/object:SM::Flow::LIST 
  contents: 
  - !ruby/struct:SM::Flow::LI 
    label: "path<String>:"
    body: Path to file to send to the client.
  - !ruby/struct:SM::Flow::LI 
    label: "content_type<String>:"
    body: content type header value. By default is set to empty string to let Nginx detect it.
  type: :NOTE
- !ruby/struct:SM::Flow::H 
  level: 4
  text: Return
- !ruby/object:SM::Flow::LIST 
  contents: 
  - !ruby/struct:SM::Flow::LI 
    label: "String:"
    body: precisely a single space.
  type: :NOTE
- !ruby/struct:SM::Flow::P 
  body: ":api: public"
full_name: Merb::ControllerMixin#nginx_send_file
is_singleton: false
name: nginx_send_file
params: (path, content_type = "")
visibility: public
