struct
Response
pub struct Response {
pub status: u16,
pub headers: Vec<(String, String)>,
pub body: Vec<u8>,
}An HTTP response: its status, headers and body.
Fields
Methods
to_bytes
pub fn to_bytes(&self, include_body: bool) -> Vec<u8>Serialise; include_body is false for HEAD requests.