class ActionDispatch::FileHandler

def attempt(env)

Experimental RBS support (using type sampling data from the type_fusion project).

def attempt: (Hash env) -> nil

This signature was generated using 1 sample from 1 application.

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