pub struct Http1HeaderMap { /* private fields */ }
Implementations§
Source§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 into_headers(self) -> HeaderMap
Sourcepub 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§
Source§impl Clone for Http1HeaderMap
impl Clone for Http1HeaderMap
Source§fn clone(&self) -> Http1HeaderMap
fn clone(&self) -> Http1HeaderMap
Returns a copy 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 moreSource§impl Debug for Http1HeaderMap
impl Debug for Http1HeaderMap
Source§impl Default for Http1HeaderMap
impl Default for Http1HeaderMap
Source§fn default() -> Http1HeaderMap
fn default() -> Http1HeaderMap
Returns the “default value” for a type. Read more
Source§impl From<HeaderMap> for Http1HeaderMap
impl From<HeaderMap> for Http1HeaderMap
Source§fn from(value: HeaderMap) -> Http1HeaderMap
fn from(value: HeaderMap) -> Http1HeaderMap
Converts to this type from the input type.
Source§impl From<Http1HeaderMap> for HeaderMap
impl From<Http1HeaderMap> for HeaderMap
Source§fn from(value: Http1HeaderMap) -> HeaderMap
fn from(value: Http1HeaderMap) -> HeaderMap
Converts to this type from the input type.
Source§impl<N> FromIterator<(N, HeaderValue)> for Http1HeaderMapwhere
N: IntoHttp1HeaderName,
impl<N> FromIterator<(N, HeaderValue)> for Http1HeaderMapwhere
N: IntoHttp1HeaderName,
Source§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
Source§impl IntoIterator for Http1HeaderMap
impl IntoIterator for Http1HeaderMap
Source§type Item = (Http1HeaderName, HeaderValue)
type Item = (Http1HeaderName, HeaderValue)
The type of the elements being iterated over.
Source§type IntoIter = Http1HeaderMapIntoIter
type IntoIter = Http1HeaderMapIntoIter
Which kind of iterator are we turning this into?
Source§fn into_iter(self) -> <Http1HeaderMap as IntoIterator>::IntoIter
fn into_iter(self) -> <Http1HeaderMap as IntoIterator>::IntoIter
Creates an iterator from a value. 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§
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,
Source§impl<T> FutureExt for T
impl<T> FutureExt for T
Source§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
Source§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§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