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 duplicate 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 Freeze for HttpHeaders
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