pub struct HttpResponse { /* private fields */ }Implementations§
Source§impl HttpResponse
impl HttpResponse
pub fn new( status: HttpResponseStatus, headers: Vec<HttpHeader>, body: Vec<u8>, head: Vec<u8>, ) -> Self
pub fn is_terminated(&self) -> bool
pub fn headers(&self) -> &Vec<HttpHeader>
pub fn is_header_terminated(&self) -> bool
pub fn content_length(&self) -> Option<usize>
pub fn as_bytes(&self) -> Vec<u8> ⓘ
pub fn transfer_encoding(&self) -> &HttpTransferEncoding
pub fn body_mut(&mut self) -> &mut Vec<u8> ⓘ
pub fn is_transfer_complete(&self) -> bool
pub fn status(&self) -> &HttpResponseStatus
pub fn keep_alive(&self) -> bool
Trait Implementations§
Source§impl Clone for HttpResponse
impl Clone for HttpResponse
Source§fn clone(&self) -> HttpResponse
fn clone(&self) -> HttpResponse
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 HttpResponse
impl Debug for HttpResponse
Source§impl Default for HttpResponse
impl Default for HttpResponse
Source§fn default() -> HttpResponse
fn default() -> HttpResponse
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for HttpResponse
impl RefUnwindSafe for HttpResponse
impl Send for HttpResponse
impl Sync for HttpResponse
impl Unpin for HttpResponse
impl UnwindSafe for HttpResponse
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