pub struct Headers { /* private fields */ }
Available on crate feature
http
only.Expand description
A wrapper around web_sys::Headers
.
Implementations§
source§impl 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§
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