Struct Http1HeaderMap
pub struct Http1HeaderMap { /* private fields */ }
Implementations§
§impl Http1HeaderMap
impl Http1HeaderMap
pub fn with_capacity(size: usize) -> Http1HeaderMap
pub fn from_parts( headers: HeaderMap, original_headers: OriginalHttp1Headers, ) -> Http1HeaderMap
pub fn copy_from_req<B>(req: &Request<B>) -> Http1HeaderMap
pub fn new(headers: HeaderMap, ext: Option<&mut Extensions>) -> Http1HeaderMap
pub fn get(&self, key: impl AsHeaderName) -> Option<&HeaderValue>
pub fn get_original_name(&self, key: &HeaderName) -> Option<&Http1HeaderName>
pub fn contains_key(&self, key: impl AsHeaderName) -> bool
pub fn headers(&self) -> &HeaderMap
pub fn into_headers(self) -> HeaderMap
pub fn consume(self, ext: &mut Extensions) -> HeaderMap
pub fn consume(self, ext: &mut Extensions) -> HeaderMap
use Self::into_headers
if you do not care about
the original headers.
pub fn into_parts(self) -> (HeaderMap, OriginalHttp1Headers)
pub fn append(&mut self, name: impl IntoHttp1HeaderName, value: HeaderValue)
pub fn try_append( &mut self, name: impl TryIntoHttp1HeaderName, value: HeaderValue, ) -> Result<(), InvalidHeaderName>
Trait Implementations§
§impl Clone for Http1HeaderMap
impl Clone for Http1HeaderMap
§fn clone(&self) -> Http1HeaderMap
fn clone(&self) -> Http1HeaderMap
Returns a duplicate 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 more§impl Debug for Http1HeaderMap
impl Debug for Http1HeaderMap
§impl Default for Http1HeaderMap
impl Default for Http1HeaderMap
§fn default() -> Http1HeaderMap
fn default() -> Http1HeaderMap
Returns the “default value” for a type. Read more
§impl<'de> Deserialize<'de> for Http1HeaderMap
impl<'de> Deserialize<'de> for Http1HeaderMap
§fn deserialize<D>(
deserializer: D,
) -> Result<Http1HeaderMap, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
fn deserialize<D>(
deserializer: D,
) -> Result<Http1HeaderMap, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
§impl From<HeaderMap> for Http1HeaderMap
impl From<HeaderMap> for Http1HeaderMap
§fn from(value: HeaderMap) -> Http1HeaderMap
fn from(value: HeaderMap) -> Http1HeaderMap
Converts to this type from the input type.
§impl From<Http1HeaderMap> for HeaderMap
impl From<Http1HeaderMap> for HeaderMap
§fn from(value: Http1HeaderMap) -> HeaderMap
fn from(value: Http1HeaderMap) -> HeaderMap
Converts to this type from the input type.
§impl From<Http1HeaderMap> for RequestHeaders
impl From<Http1HeaderMap> for RequestHeaders
§fn from(value: Http1HeaderMap) -> RequestHeaders
fn from(value: Http1HeaderMap) -> RequestHeaders
Converts to this type from the input type.
§impl<N> FromIterator<(N, HeaderValue)> for Http1HeaderMapwhere
N: IntoHttp1HeaderName,
impl<N> FromIterator<(N, HeaderValue)> for Http1HeaderMapwhere
N: IntoHttp1HeaderName,
§fn from_iter<T>(iter: T) -> Http1HeaderMapwhere
T: IntoIterator<Item = (N, HeaderValue)>,
fn from_iter<T>(iter: T) -> Http1HeaderMapwhere
T: IntoIterator<Item = (N, HeaderValue)>,
Creates a value from an iterator. Read more
§impl IntoIterator for Http1HeaderMap
impl IntoIterator for Http1HeaderMap
§type Item = (Http1HeaderName, HeaderValue)
type Item = (Http1HeaderName, HeaderValue)
The type of the elements being iterated over.
§type IntoIter = Http1HeaderMapIntoIter
type IntoIter = Http1HeaderMapIntoIter
Which kind of iterator are we turning this into?
§fn into_iter(self) -> <Http1HeaderMap as IntoIterator>::IntoIter
fn into_iter(self) -> <Http1HeaderMap as IntoIterator>::IntoIter
Creates an iterator from a value. Read more
§impl Serialize for Http1HeaderMap
impl Serialize for Http1HeaderMap
§fn serialize<S>(
&self,
serializer: S,
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
S: Serializer,
fn serialize<S>(
&self,
serializer: S,
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
S: Serializer,
Serialize this value into the given Serde serializer. Read more
Auto Trait Implementations§
impl Freeze for Http1HeaderMap
impl RefUnwindSafe for Http1HeaderMap
impl Send for Http1HeaderMap
impl Sync for Http1HeaderMap
impl Unpin for Http1HeaderMap
impl UnwindSafe for Http1HeaderMap
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> FutureExt for T
impl<T> FutureExt for T
§fn with_context(self, otel_cx: Context) -> WithContext<Self> ⓘ
fn with_context(self, otel_cx: Context) -> WithContext<Self> ⓘ
§fn with_current_context(self) -> WithContext<Self> ⓘ
fn with_current_context(self) -> WithContext<Self> ⓘ
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more§impl<T> Pointable for T
impl<T> Pointable for T
§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
§fn and<P, B, E>(self, other: P) -> And<T, P>
fn and<P, B, E>(self, other: P) -> And<T, P>
Create a new
Policy
that returns Action::Follow
only if self
and other
return
Action::Follow
. Read more