method

find_file

Importance_1
v6.1.3.1 - Show latest stable - 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.