method
attempt
v8.0.0 -
Show latest stable
- Class:
ActionDispatch::FileHandler
attempt(env)public
No documentation available.
# File actionpack/lib/action_dispatch/middleware/static.rb, line 69
def attempt(env)
request = Rack::Request.new env
if request.get? || request.head?
if found = find_file(request.path_info, accept_encoding: request.accept_encoding)
serve request, *found
end
end
end