pub struct HTTP1Response {
pub status: StatusCode,
pub headers: HeaderMap,
pub body: Vec<u8>,
}Expand description
An HTTP/1.1 response
Fields§
§status: StatusCode§headers: HeaderMap§body: Vec<u8>Implementations§
Source§impl HTTP1Response
impl HTTP1Response
pub async fn write_onto<WRITER: AsyncWriteExt + Send + Unpin + 'static>( &self, writer: &mut WRITER, )
Trait Implementations§
Source§impl Debug for HTTP1Response
impl Debug for HTTP1Response
Source§impl PartialEq for HTTP1Response
impl PartialEq for HTTP1Response
impl Eq for HTTP1Response
impl StructuralPartialEq for HTTP1Response
Auto Trait Implementations§
impl Freeze for HTTP1Response
impl RefUnwindSafe for HTTP1Response
impl Send for HTTP1Response
impl Sync for HTTP1Response
impl Unpin for HTTP1Response
impl UnwindSafe for HTTP1Response
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