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.