Struct request::response::Response [] [src]

pub struct Response {
    pub http_version: String,
    pub status_code: u16,
    pub status_message: String,
    pub headers: HashMap<String, String>,
    pub body: String,
}

Fields

http_version
status_code
status_message
headers
body

Methods

impl Response

fn new(headers: &str, body: &str) -> Response