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 = HashMapXxHash3_64<RequestQuerysKey, RequestQuerysValue>;
17pub type RequestBody = Vec<u8>;
19pub type RequestBodyString = String;
21pub type RequestHeadersKey = String;
23pub type RequestHeadersValue = String;
25pub type RequestHeaders = HashMapXxHash3_64<RequestHeadersKey, RequestHeadersValue>;
27pub type RequestReaderHandleResult = Result<Request, RequestError>;
29pub type RwLockReadGuardRequest<'a> = RwLockReadGuard<'a, Request>;
31pub type RwLockWriteGuardRequest<'a> = RwLockWriteGuard<'a, Request>;
33pub type OptionRequestQuerysValue = Option<RequestQuerysValue>;
35pub type OptionRequestHeadersValue = Option<RequestHeadersValue>;
37
38#[derive(Debug, Clone, Lombok, DisplayDebug)]
49pub struct Request {
50 #[set(skip)]
51 pub(super) method: RequestMethod,
52 #[set(skip)]
53 pub(super) host: RequestHost,
54 #[set(skip)]
55 pub(super) version: RequestVersion,
56 #[set(skip)]
57 pub(super) path: RequestPath,
58 pub(super) querys: RequestQuerys,
59 pub(super) headers: RequestHeaders,
60 #[set(skip)]
61 pub(super) body: RequestBody,
62}