http_type/request/struct.rs
1use crate::*;
2
3/// Represents an HTTP request.
4///
5/// # Fields
6/// - `method`: The HTTP method of the request.
7/// - `host`: The host of the request.
8/// - `version`: The version of the request.
9/// - `path`: The path of the request.
10/// - `querys`: The query string of the request.
11/// - `headers`: A collection of HTTP headers as key-value pairs.
12/// - `body`: The binary body of the request.
13#[derive(Debug, Clone, Lombok, DisplayDebug)]
14pub struct Request {
15 #[set(skip)]
16 pub(super) method: RequestMethod,
17 #[set(skip)]
18 pub(super) host: RequestHost,
19 #[set(skip)]
20 pub(super) version: RequestVersion,
21 #[set(skip)]
22 pub(super) path: RequestPath,
23 pub(super) querys: RequestQuerys,
24 pub(super) headers: RequestHeaders,
25 #[set(skip)]
26 pub(super) body: RequestBody,
27}