class ActionDispatch::Request

def check_method(name)

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

def check_method: (String name) -> String

This signature was generated using 2 samples from 1 application.

def check_method(name)
  HTTP_METHOD_LOOKUP[name] || raise(ActionController::UnknownHttpMethod, "#{name}, accepted HTTP methods are #{HTTP_METHODS[0...-1].join(', ')}, and #{HTTP_METHODS[-1]}")
  name
end