Struct tower_http::normalize_path::NormalizePathLayer
source · pub struct NormalizePathLayer {}
Available on crate feature
normalize-path
only.Expand description
Layer that applies NormalizePath
which normalizes paths.
See the module docs for more details.
Implementations§
source§impl NormalizePathLayer
impl NormalizePathLayer
sourcepub fn trim_trailing_slash() -> Self
pub fn trim_trailing_slash() -> Self
Create a new NormalizePathLayer
.
Any trailing slashes from request paths will be removed. For example, a request with /foo/
will be changed to /foo
before reaching the inner service.
Trait Implementations§
source§impl Clone for NormalizePathLayer
impl Clone for NormalizePathLayer
source§fn clone(&self) -> NormalizePathLayer
fn clone(&self) -> NormalizePathLayer
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read more