pub struct SanitizePath<S> { /* private fields */ }Expand description
Middleware to remove filesystem path traversals attempts from URL paths.
See the module docs for more details.
Implementations§
Source§impl<S> SanitizePath<S>
impl<S> SanitizePath<S>
Sourcepub fn sanitize_paths(inner: S) -> Self
pub fn sanitize_paths(inner: S) -> Self
Sanitize all paths for the given service.
This will make all paths on the URL safe for the service to consume.
Trait Implementations§
Source§impl<S: Clone> Clone for SanitizePath<S>
impl<S: Clone> Clone for SanitizePath<S>
Source§fn clone(&self) -> SanitizePath<S>
fn clone(&self) -> SanitizePath<S>
Returns a duplicate 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 moreSource§impl<S: Debug> Debug for SanitizePath<S>
impl<S: Debug> Debug for SanitizePath<S>
Source§impl<S, ReqBody, ResBody> Service<Request<ReqBody>> for SanitizePath<S>
impl<S, ReqBody, ResBody> Service<Request<ReqBody>> for SanitizePath<S>
impl<S: Copy> Copy for SanitizePath<S>
Auto Trait Implementations§
impl<S> Freeze for SanitizePath<S>where
S: Freeze,
impl<S> RefUnwindSafe for SanitizePath<S>where
S: RefUnwindSafe,
impl<S> Send for SanitizePath<S>where
S: Send,
impl<S> Sync for SanitizePath<S>where
S: Sync,
impl<S> Unpin for SanitizePath<S>where
S: Unpin,
impl<S> UnwindSafe for SanitizePath<S>where
S: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more