Matches a list of routes against a given URL to determine if a match is found.
The URL to be matched against the provided routes.
Array of route objects that define the matching criteria such as protocol, hostname, and path.
Returns matched route, or undefined if no match is found.
Matches a list of routes against a given URL to determine if a match is found.