Struct tower_http::propagate_header::PropagateHeaderLayer
source · [−]pub struct PropagateHeaderLayer { /* private fields */ }
This is supported on crate feature
propagate-header
only.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
Create a new PropagateHeaderLayer
.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for PropagateHeaderLayer
impl Send for PropagateHeaderLayer
impl Sync for PropagateHeaderLayer
impl Unpin for PropagateHeaderLayer
impl UnwindSafe for PropagateHeaderLayer
Blanket Implementations
Mutably borrows from an owned value. Read more
This is supported on crate feature
follow-redirect
only.Create a new Policy
that returns Action::Follow
only if self
and other
return
Action::Follow
. Read more
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more