allowMethod method
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));
}
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
.
bool allowMethod() {
return (methods.contains(rq.method));
}