method
call
v5.2.3 -
Show latest stable
- Class:
ActionDispatch::Static
call(env)public
No documentation available.
# File actionpack/lib/action_dispatch/middleware/static.rb, line 116
def call(env)
req = Rack::Request.new env
if req.get? || req.head?
path = req.path_info.chomp("/".freeze)
if match = @file_handler.match?(path)
req.path_info = match
return @file_handler.serve(req)
end
end
@app.call(req.env)
end