pub struct MessageHeaders(/* private fields */);
Implementations§
Source§impl MessageHeaders
impl MessageHeaders
pub fn new(type_: MessageHeadersType) -> MessageHeaders
pub fn append(&mut self, name: &str, value: &str)
pub fn clean_connection_headers(&mut self)
pub fn clear(&mut self)
pub fn foreach<P: FnMut(&str, &str)>(&mut self, func: P)
pub fn get(&mut self, name: &str) -> Option<GString>
pub fn content_length(&mut self) -> i64
pub fn content_range(&mut self) -> Option<(i64, i64, i64)>
pub fn encoding(&mut self) -> Encoding
pub fn expectations(&mut self) -> Expectation
pub fn headers_type(&mut self) -> MessageHeadersType
pub fn list(&mut self, name: &str) -> Option<GString>
pub fn one(&mut self, name: &str) -> Option<GString>
pub fn header_contains(&mut self, name: &str, token: &str) -> bool
pub fn header_equals(&mut self, name: &str, value: &str) -> bool
pub fn remove(&mut self, name: &str)
pub fn replace(&mut self, name: &str, value: &str)
pub fn set_content_length(&mut self, content_length: i64)
pub fn set_content_range(&mut self, start: i64, end: i64, total_length: i64)
pub fn set_encoding(&mut self, encoding: Encoding)
pub fn set_expectations(&mut self, expectations: Expectation)
pub fn set_range(&mut self, start: i64, end: i64)
Trait Implementations§
Source§impl Clone for MessageHeaders
impl Clone for MessageHeaders
Source§fn clone(&self) -> MessageHeaders
fn clone(&self) -> MessageHeaders
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 MessageHeaders
impl Debug for MessageHeaders
Source§impl Hash for MessageHeaders
impl Hash for MessageHeaders
Source§impl Ord for MessageHeaders
impl Ord for MessageHeaders
Source§fn cmp(&self, other: &MessageHeaders) -> Ordering
fn cmp(&self, other: &MessageHeaders) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for MessageHeaders
impl PartialEq for MessageHeaders
Source§impl PartialOrd for MessageHeaders
impl PartialOrd for MessageHeaders
Source§impl StaticType for MessageHeaders
impl StaticType for MessageHeaders
Source§fn static_type() -> Type
fn static_type() -> Type
Returns the type identifier of
Self
.impl Eq for MessageHeaders
impl StructuralPartialEq for MessageHeaders
Auto Trait Implementations§
impl Freeze for MessageHeaders
impl RefUnwindSafe for MessageHeaders
impl !Send for MessageHeaders
impl !Sync for MessageHeaders
impl Unpin for MessageHeaders
impl UnwindSafe for MessageHeaders
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