Extract path from Request; look for a matching pattern; if found, dispatch the Request to the registered service; otherwise create a NOT_FOUND response
Extract path from Request; look for a matching pattern; if found, dispatch the Request to the registered service; otherwise create a NOT_FOUND response
Create a new Mux service with the specified pattern added.
Create a new Mux service with the specified pattern added. If the pattern already exists, overwrite existing value. Pattern ending with "/" indicates prefix matching; otherwise exact matching.
A service that dispatches incoming requests to registered handlers. In order to choose which handler to dispatch the request to, we take the path of the request and match it with the patterns of the pre-registered handlers. The pattern matching follows these rules:
NOTE: When multiple pattern matches exist, the longest pattern wins.