pub struct HeaderMap { /* private fields */ }Expand description
EN: Case-insensitive HTTP headers retained for diagnostics and request construction. 中文:用于诊断和构造请求的大小写不敏感 HTTP 头集合。
Implementations§
Source§impl HeaderMap
impl HeaderMap
Sourcepub fn from_pairs<I, P>(pairs: I) -> Selfwhere
I: IntoIterator<Item = P>,
P: IntoHeaderPair,
pub fn from_pairs<I, P>(pairs: I) -> Selfwhere
I: IntoIterator<Item = P>,
P: IntoHeaderPair,
EN: Creates headers from name/value pairs. 中文:通过名称和值的键值对创建请求头集合。
Sourcepub fn insert(&mut self, name: impl Into<String>, value: impl Into<String>)
pub fn insert(&mut self, name: impl Into<String>, value: impl Into<String>)
EN: Inserts or replaces a header value using ASCII case-insensitive header names. 中文:使用 ASCII 大小写不敏感的头名称插入或替换请求头。
Trait Implementations§
impl Eq for HeaderMap
impl StructuralPartialEq for HeaderMap
Auto Trait Implementations§
impl Freeze for HeaderMap
impl RefUnwindSafe for HeaderMap
impl Send for HeaderMap
impl Sync for HeaderMap
impl Unpin for HeaderMap
impl UnsafeUnpin for HeaderMap
impl UnwindSafe for HeaderMap
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.