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, Getter, DisplayDebug)]
14pub struct Request {
15    pub(super) method: RequestMethod,
16    pub(super) host: RequestHost,
17    pub(super) version: RequestVersion,
18    pub(super) path: RequestPath,
19    pub(super) querys: RequestQuerys,
20    pub(super) headers: RequestHeaders,
21    pub(super) body: RequestBody,
22}