method
find_file
v8.0.0 -
Show latest stable
- Class:
ActionDispatch::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.