pub struct Headers { /* private fields */ }Expand description
Case-insensitive HTTP Header map conforming to W3C Fetch spec.
Implementations§
Source§impl Headers
impl Headers
pub fn new() -> Self
pub fn set(&mut self, key: &str, value: &str)
pub fn append(&mut self, key: &str, value: &str)
pub fn get(&self, key: &str) -> Option<&str>
pub fn get_all(&self, key: &str) -> Vec<&str>
pub fn has(&self, key: &str) -> bool
pub fn delete(&mut self, key: &str)
pub fn entries(&self) -> Vec<(&str, &str)>
pub fn all_entries(&self) -> Vec<(&str, &str)>
Trait Implementations§
impl Eq for Headers
impl StructuralPartialEq for Headers
Auto Trait Implementations§
impl Forget for Headers
impl Freeze for Headers
impl Move for Headers
impl RefUnwindSafe for Headers
impl Send for Headers
impl Sync for Headers
impl Unpin for Headers
impl UnsafeUnpin for Headers
impl UnwindSafe for Headers
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