pub fn validate_route_match(
path_pattern: &str,
path_type: &DomainPathMatchType,
methods: Option<&[String]>,
) -> ProxyResult<()>Expand description
Check a route’s path pattern and methods.
A prefix or exact pattern is a path, so it gets the health-check path rules. A regex has to compile – with a size limit, so that a pattern which would take the matcher megabytes is refused here rather than at match time.