Match a pathname against one endpoint and return validated path parameters.
Returns undefined for a different route, invalid encoding/parameters or an
absolute URL/query/fragment. This does not check HTTP method or authorization.
One optional trailing slash is accepted, matching server routing. Parameters
may contain slashes when their schema permits them, as in route templates.
Match a pathname against one endpoint and return validated path parameters. Returns undefined for a different route, invalid encoding/parameters or an absolute URL/query/fragment. This does not check HTTP method or authorization. One optional trailing slash is accepted, matching server routing. Parameters may contain slashes when their schema permits them, as in route templates.