pub struct Headers { /* private fields */ }
This is supported on crate feature
http
only.Expand description
A wrapper around web_sys::Headers
.
Implementations
sourceimpl Headers
impl Headers
sourcepub fn from_raw(raw: Headers) -> Self
pub fn from_raw(raw: Headers) -> Self
Build Headers from web_sys::Headers.
sourcepub fn into_raw(self) -> Headers
pub fn into_raw(self) -> Headers
Covert Headers to web_sys::Headers.
sourcepub fn append(&self, name: &str, value: &str)
pub fn append(&self, name: &str, value: &str)
This method appends a new value onto an existing header, or adds the header if it does not already exist.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Headers
impl !Send for Headers
impl !Sync for Headers
impl Unpin for Headers
impl UnwindSafe for Headers
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more