pub struct Headers(/* private fields */);
Implementations§
Source§impl Headers
impl Headers
Sourcepub fn raw_headers(&self) -> String
pub fn raw_headers(&self) -> String
Raw Header
Used for writing response.
pub fn content_type(&mut self) -> Option<&String>
pub fn set_content_type(&mut self, content_type: &str)
pub fn content_len(&mut self) -> Option<&String>
pub fn set_content_len(&mut self, content_len: &str)
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Headers
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