Struct tower_http::set_header::response::SetResponseHeaderLayer
source · [−]pub struct SetResponseHeaderLayer<M> { /* private fields */ }set-header only.Expand description
Layer that applies SetResponseHeader which adds a response header.
See SetResponseHeader for more details.
Implementations
Create a new SetResponseHeaderLayer.
If a previous value exists for the same header, it is removed and replaced with the new header value.
Create a new SetResponseHeaderLayer.
The new header is always added, preserving any existing values. If previous values exist, the header will have multiple values.
Create a new SetResponseHeaderLayer.
If a previous value exists for the header, the new value is not inserted.
Trait Implementations
Auto Trait Implementations
impl<M> RefUnwindSafe for SetResponseHeaderLayer<M> where
M: RefUnwindSafe,
impl<M> Send for SetResponseHeaderLayer<M> where
M: Send,
impl<M> Sync for SetResponseHeaderLayer<M> where
M: Sync,
impl<M> Unpin for SetResponseHeaderLayer<M> where
M: Unpin,
impl<M> UnwindSafe for SetResponseHeaderLayer<M> where
M: UnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more
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