pub struct Response {
pub status: u16,
pub headers: Vec<HeaderField>,
pub body: Vec<u8>,
}Expand description
A complete plaintext response supplied to or returned by the engine.
Fields§
§status: u16Final HTTP status code in the inclusive range 200 through 599.
headers: Vec<HeaderField>Ordered end-to-end HTTP fields.
body: Vec<u8>Complete bounded response body. Empty bodies remain authenticated.
Trait Implementations§
impl Eq for Response
impl StructuralPartialEq for Response
Auto Trait Implementations§
impl Freeze for Response
impl RefUnwindSafe for Response
impl Send for Response
impl Sync for Response
impl Unpin for Response
impl UnsafeUnpin for Response
impl UnwindSafe for Response
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