Struct tower_http::request_id::PropagateRequestIdLayer
source · [−]pub struct PropagateRequestIdLayer { /* private fields */ }This is supported on crate feature
request-id only.Expand description
Propagate request ids from requests to responses.
This layer applies the PropagateRequestId middleware.
See the module docs and PropagateRequestId for more details.
Implementations
Create a new PropagateRequestIdLayer.
Create a new PropagateRequestIdLayer that uses x-request-id as the header name.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for PropagateRequestIdLayer
impl Send for PropagateRequestIdLayer
impl Sync for PropagateRequestIdLayer
impl Unpin for PropagateRequestIdLayer
impl UnwindSafe for PropagateRequestIdLayer
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