method

attempt

rails latest stable - Class: ActionDispatch::FileHandler
attempt(env)
public

No documentation available.

# File actionpack/lib/action_dispatch/middleware/static.rb, line 67
    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