Struct irox_networking::http::HttpHeaders
source · pub struct HttpHeaders { /* private fields */ }Implementations§
source§impl HttpHeaders
impl HttpHeaders
pub fn new_empty() -> Self
pub fn new_request() -> Self
pub fn add_header<K: AsRef<str>, V: AsRef<str>>(&mut self, key: K, value: V)
pub fn get_header<K: AsRef<str>>(&self, key: K) -> Option<&String>
pub fn get_headers<K: AsRef<str>>(&self, key: K) -> Option<&Vec<String>>
pub fn headers(&self) -> &BTreeMap<String, Vec<String>>
pub fn contains_header<K: AsRef<str>>(&self, key: K) -> bool
pub fn maybe_add<K: AsRef<str>, V: AsRef<str>>(&mut self, key: K, val: V)
pub fn write_to<T: Write>(&self, out: &mut T) -> Result<(), Error>
pub fn add_line(&mut self, val: &[u8])
pub fn create_from<T: Read + Sized>( input: T ) -> Result<HeaderResponse<T>, Error>
Trait Implementations§
source§impl Clone for HttpHeaders
impl Clone for HttpHeaders
source§fn clone(&self) -> HttpHeaders
fn clone(&self) -> HttpHeaders
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl Debug for HttpHeaders
impl Debug for HttpHeaders
source§impl Default for HttpHeaders
impl Default for HttpHeaders
source§fn default() -> HttpHeaders
fn default() -> HttpHeaders
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl RefUnwindSafe for HttpHeaders
impl Send for HttpHeaders
impl Sync for HttpHeaders
impl Unpin for HttpHeaders
impl UnwindSafe for HttpHeaders
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