method

attempt

Importance_0
Ruby on Rails latest stable (v7.1.3.2) - 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 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
Register or log in to add new notes.