method

attempt

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