method

attempt

Importance_0
Ruby on Rails latest stable (v6.1.7.7) - 0 notes - Class: FileHandler
attempt(env) public

No documentation

This method has no description. You can help the Ruby on Rails community by adding new notes.

Hide source
# File actionpack/lib/action_dispatch/middleware/static.rb, line 64
    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
Register or log in to add new notes.