pub struct Request {
pub request_type: RequestType,
pub path: String,
pub query: HashMap<String, String>,
pub headers: HashMap<String, String>,
pub body: BodyContents,
}
Expand description
An incoming request. Information is extracted from the HTTP request and placed nicely into the following fields.
Body data can be extracted is several different types by
accessing body
. See more details in BodyContents
.
Fields§
§request_type: RequestType
§path: String
§query: HashMap<String, String>
§headers: HashMap<String, String>
§body: BodyContents
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