use json::JsonValue;
pub struct Request {
pub code: u16,
pub status: String,
pub header: JsonValue,
pub body: Vec<u8>,
}
impl Request {
pub fn new(code: u16, status: &str, header: JsonValue, body: Vec<u8>) -> Request {
Self {
code,
status: status.to_string(),
header,
body,
}
}
}