pub struct Req {
pub method: String,
pub path: String,
pub body: String,
pub headers: HashMap<String, String>,
}Expand description
Represents an incoming HTTP request. Designed for simplicity, containing parsed methods, paths, and headers.
Fields§
§method: String§path: String§body: String§headers: HashMap<String, String>Auto Trait Implementations§
impl Freeze for Req
impl RefUnwindSafe for Req
impl Send for Req
impl Sync for Req
impl Unpin for Req
impl UnwindSafe for Req
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