Matches the protocol (HTTP or HTTPS) of an incoming HTTP event against a route's 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 protocol matches the route's requirements, otherwise false.
true
false
const match = protocolMatcher({ route, event });console.log(match); // true or false Copy
const match = protocolMatcher({ route, event });console.log(match); // true or false
Matches the protocol (HTTP or HTTPS) of an incoming HTTP event against a route's configuration.