http_type/request/
type.rs1use crate::*;
2
3pub type RequestMethod = Methods;
5pub type RequestHost = String;
7pub type RequestVersion = HttpVersion;
9pub type RequestPath = String;
11pub type RequestQuerysKey = String;
13pub type RequestQuerysValue = String;
15pub type RequestQuerys = HashMap<RequestQuerysKey, RequestQuerysValue>;
17pub type RequestBody = Vec<u8>;
19pub type RequestBodyString = String;
21pub type RequestHeadersKey = String;
23pub type RequestHeadersValue = String;
25pub type RequestHeaders = HashMap<RequestHeadersKey, RequestHeadersValue>;
27pub type RequestNewResult = Result<Request, RequestError>;
29
30#[derive(Debug, Clone, Lombok, DisplayDebug)]
41pub struct Request {
42 #[set(skip)]
43 pub(super) method: RequestMethod,
44 #[set(skip)]
45 pub(super) host: RequestHost,
46 #[set(skip)]
47 pub(super) version: RequestVersion,
48 #[set(skip)]
49 pub(super) path: RequestPath,
50 pub(super) querys: RequestQuerys,
51 pub(super) headers: RequestHeaders,
52 #[set(skip)]
53 pub(super) body: RequestBody,
54}