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>;
29pub type RwLockReadGuardRequest<'a> = RwLockReadGuard<'a, Request>;
31pub type RwLockWriteGuardRequest<'a> = RwLockWriteGuard<'a, Request>;
33
34#[derive(Debug, Clone, Lombok, DisplayDebug)]
45pub struct Request {
46 #[set(skip)]
47 pub(super) method: RequestMethod,
48 #[set(skip)]
49 pub(super) host: RequestHost,
50 #[set(skip)]
51 pub(super) version: RequestVersion,
52 #[set(skip)]
53 pub(super) path: RequestPath,
54 pub(super) querys: RequestQuerys,
55 pub(super) headers: RequestHeaders,
56 #[set(skip)]
57 pub(super) body: RequestBody,
58}