Flowdock
Ruby on Rails latest stable (v4.2.1) - 0 notes - Superclass: Object

This middleware will attempt to return the contents of a file’s body from disk in the response. If a file is not found on disk, the request will be delegated to the application stack. This middleware is commonly initialized to serve assets from a server’s `public/` directory.

This middleware verifies the path to ensure that only files living in the root directory can be rendered. A request cannot produce a directory traversal using this middleware. Only ‘GET’ and ‘HEAD’ requests will result in a file being returned.

Show files where this class is defined (1 file)
Register or log in to add new notes.