pub struct PropagateHeaderLayer { /* private fields */ }
Expand description
Layer that applies PropagateHeader
which propagates headers from requests to responses.
If the header is present on the request it’ll be applied to the response as well. This could
for example be used to propagate headers such as X-Request-Id
.
See the module docs for more details.
Implementations§
Source§impl PropagateHeaderLayer
impl PropagateHeaderLayer
Sourcepub fn new(header: HeaderName) -> PropagateHeaderLayer
pub fn new(header: HeaderName) -> PropagateHeaderLayer
Create a new PropagateHeaderLayer
.
Trait Implementations§
Source§impl Clone for PropagateHeaderLayer
impl Clone for PropagateHeaderLayer
Source§fn clone(&self) -> PropagateHeaderLayer
fn clone(&self) -> PropagateHeaderLayer
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 moreSource§impl Debug for PropagateHeaderLayer
impl Debug for PropagateHeaderLayer
Source§impl<S> Layer<S> for PropagateHeaderLayer
impl<S> Layer<S> for PropagateHeaderLayer
Source§type Service = PropagateHeader<S>
type Service = PropagateHeader<S>
The wrapped service
Auto Trait Implementations§
impl !Freeze for PropagateHeaderLayer
impl RefUnwindSafe for PropagateHeaderLayer
impl Send for PropagateHeaderLayer
impl Sync for PropagateHeaderLayer
impl Unpin for PropagateHeaderLayer
impl UnwindSafe for PropagateHeaderLayer
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