Matches the host of an incoming HTTP event against a route's host 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 host matches or if no specific host is configured.
true
const match = hostMatcher({ route, event });console.log(match); // true or false Copy
const match = hostMatcher({ route, event });console.log(match); // true or false
Matches the host of an incoming HTTP event against a route's host configuration.