Struct poem::web::WithHeader
source · [−]pub struct WithHeader<T> { /* private fields */ }
Expand description
Returned by with_header
method.
Trait Implementations
Consume itself and return Response
.
fn with_header<K, V>(self, key: K, value: V) -> WithHeader<Self> where
K: TryInto<HeaderName>,
V: TryInto<HeaderValue>,
Self: Sized,
fn with_header<K, V>(self, key: K, value: V) -> WithHeader<Self> where
K: TryInto<HeaderName>,
V: TryInto<HeaderValue>,
Self: Sized,
Wrap an impl IntoResponse
to add a header. Read more
Wrap an impl IntoResponse
to set a status code. Read more
Auto Trait Implementations
impl<T> RefUnwindSafe for WithHeader<T> where
T: RefUnwindSafe,
impl<T> Send for WithHeader<T> where
T: Send,
impl<T> Sync for WithHeader<T> where
T: Sync,
impl<T> Unpin for WithHeader<T> where
T: Unpin,
impl<T> UnwindSafe for WithHeader<T> where
T: UnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more
Consumes this value returns a poem::Result<T>
.
pub fn vzip(self) -> V
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