Methods
Class Public methods
new(app, path, cache_control=nil)
Link
Instance Public methods
call(env)
Link
# File actionpack/lib/action_dispatch/middleware/static.rb, line 74 def call(env) case env['REQUEST_METHOD'] when 'GET', 'HEAD' path = env['PATH_INFO'].chomp('/') if match = @file_handler.match?(path) env["PATH_INFO"] = match return @file_handler.call(env) end end @app.call(env) end