pub struct Request {
pub method: String,
pub route: String,
pub clean_route: String,
pub http_ver: String,
pub headers: HashMap<String, String>,
pub queries: HashMap<String, String>,
pub body: Option<Value>,
}
Fields§
§method: String
The current method of the request. (for example: GET
)
route: String
The current route of the request. (for example: /?q=Hello world
)
clean_route: String
A Clean route of the route
variable. (for example: /
)
http_ver: String
The request’s HTTP Version. (for example: HTTP/3
)
headers: HashMap<String, String>
The request’s headers.
queries: HashMap<String, String>
The queries from a route.
body: Option<Value>
The body. (Can BE: An Object or a String)
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Request
impl RefUnwindSafe for Request
impl Send for Request
impl Sync for Request
impl Unpin for Request
impl UnwindSafe for Request
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more