br-reqwest 0.0.21

This is an http
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
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,
        }
    }
}