use super::*;
#[derive(Clone, Copy, Data, Debug, Deserialize, DisplayDebug, Eq, New, PartialEq, Serialize)]
pub struct RequestConfig {
#[get(type(copy))]
pub(crate) buffer_size: usize,
#[get(type(copy))]
pub(crate) max_path_size: usize,
#[get(type(copy))]
pub(crate) max_header_count: usize,
#[get(type(copy))]
pub(crate) max_header_key_size: usize,
#[get(type(copy))]
pub(crate) max_header_value_size: usize,
#[get(type(copy))]
pub(crate) max_body_size: usize,
#[get(type(copy))]
pub(crate) read_timeout_ms: u64,
}
#[derive(Clone, Data, Debug, Deserialize, DisplayDebug, Eq, PartialEq, Serialize)]
pub struct Request {
pub(crate) method: Method,
pub(crate) host: String,
pub(crate) version: HttpVersion,
pub(crate) path: String,
pub(crate) querys: RequestQuerys,
pub(crate) headers: RequestHeaders,
pub(crate) body: Vec<u8>,
}