class FileHandler
Ruby on Rails 6.1.7.10
Since v3.1.12This endpoint serves static files from disk using Rack::File.
URL paths are matched with static files according to expected conventions: path, path.html, path/index.html.
Precompressed versions of these files are checked first. Brotli (.br) and gzip (.gz) files are supported. If path.br exists, this endpoint returns that file with a Content-Encoding: br header.
If no matching file is found, this endpoint responds 404 Not Found.
Pass the root directory to search for matching files, an optional index: "index" to change the default path/index.html, and optional additional response headers.
Inherits from
Constants
Methods (defined here)
Private methods
(9)
Implementation detail — not part of the public API.
Methods (inherited)
From Object (17)
- # acts_like?
- # blank?
- # deep_dup
- # duplicable?
- # html_safe?
- # in?
- # instance_values
- # instance_variable_names
- # presence
- # presence_in
- # present?
- # to_param
- # to_query
- # try
- # try!
- # unescape
- # with_options
From ActiveRecord::TestFixtures (4)
From ActiveSupport::Concern (3)
- # class_methods
- # included
- # prepended