allowMethod method

bool allowMethod()

Checks if the current HTTP method is allowed for this route.

Returns true if the method is in the list of allowed methods, otherwise false.

Implementation

bool allowMethod() {
  return (methods.contains(rq.method));
}