Flowdock
method

find_file

Importance_1
Ruby on Rails latest stable (v6.1.7.7) - 0 notes - Class: FileHandler
find_file(path_info, accept_encoding:) private

Match a URI path to a static file to be served.

Used by the Static class to negotiate a servable file in the public/ directory (see Static#call).

Checks for path, path.html, and path/index.html files, in that order, including .br and .gzip compressed extensions.

If a matching file is found, the path and necessary response headers (Content-Type, Content-Encoding) are returned.

Show source
Register or log in to add new notes.