pub struct RewriteUriLayer<R> { /* private fields */ }Available on crate feature
rewrite-uri only.Expand description
Layer that applies URI rewriting to every request via a RewriteUri policy.
Wraps an inner service and rewrites the URI of each incoming request before forwarding it.
Implementations§
Source§impl<R> RewriteUriLayer<R>
impl<R> RewriteUriLayer<R>
Sourcepub fn new(rewrite: R) -> Self
pub fn new(rewrite: R) -> Self
Create a new RewriteUriLayer with the given rewrite policy.
Trait Implementations§
Source§impl<R: Clone> Clone for RewriteUriLayer<R>
impl<R: Clone> Clone for RewriteUriLayer<R>
Source§fn clone(&self) -> RewriteUriLayer<R>
fn clone(&self) -> RewriteUriLayer<R>
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<R: Debug> Debug for RewriteUriLayer<R>
impl<R: Debug> Debug for RewriteUriLayer<R>
Auto Trait Implementations§
impl<R> Freeze for RewriteUriLayer<R>where
R: Freeze,
impl<R> RefUnwindSafe for RewriteUriLayer<R>where
R: RefUnwindSafe,
impl<R> Send for RewriteUriLayer<R>where
R: Send,
impl<R> Sync for RewriteUriLayer<R>where
R: Sync,
impl<R> Unpin for RewriteUriLayer<R>where
R: Unpin,
impl<R> UnsafeUnpin for RewriteUriLayer<R>where
R: UnsafeUnpin,
impl<R> UnwindSafe for RewriteUriLayer<R>where
R: 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