Matches the HTTP method of an incoming HTTP event against a route's method configuration.
The type representing the incoming HTTP event.
The type representing the outgoing HTTP response.
The matcher options containing the route and event.
true if the method matches, otherwise false.
true
false
const match = methodMatcher({ route, event });console.log(match); // true or false Copy
const match = methodMatcher({ route, event });console.log(match); // true or false
Matches the HTTP method of an incoming HTTP event against a route's method configuration.