use crate::*;
#[derive(Clone, Copy, Data, Debug, Deserialize, DisplayDebug, Eq, New, PartialEq, Serialize)]
pub struct RequestConfig {
#[get(type(copy))]
#[set]
pub(super) buffer_size: usize,
#[get(type(copy))]
#[set]
pub(super) max_path_size: usize,
#[get(type(copy))]
#[set]
pub(super) max_header_count: usize,
#[get(type(copy))]
#[set]
pub(super) max_header_key_size: usize,
#[get(type(copy))]
#[set]
pub(super) max_header_value_size: usize,
#[get(type(copy))]
#[set]
pub(super) max_body_size: usize,
#[get(type(copy))]
#[set]
pub(super) read_timeout_ms: u64,
}
#[derive(
Clone, Debug, Deserialize, DisplayDebug, Eq, Getter, GetterMut, PartialEq, Serialize, Setter,
)]
pub struct Request {
pub(crate) method: RequestMethod,
pub(crate) host: RequestHost,
pub(crate) version: RequestVersion,
pub(crate) path: RequestPath,
pub(crate) querys: RequestQuerys,
pub(crate) headers: RequestHeaders,
pub(crate) body: RequestBody,
}