Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
_registryForHost(host) {
if (!this[REGISTRY][host]) {
this[REGISTRY][host] = HTTP_METHODS.reduce((acc, method) => {
acc[method] = new RouteRecognizer();
acc[method][HANDLERS] = new Map();
return acc;
}, {});
}
return this[REGISTRY][host];
}
}