Skip to main content

strip

Function strip 

Source
pub fn strip<'a>(path: &'a str, base: &str) -> &'a str
Expand description

Strips the base-path prefix from an incoming request path so downstream routing always sees a root-relative path. Requests that already arrive root-relative (proxy stripped the prefix, or direct local access) pass through unchanged.