pub struct Request {
pub method: Method,
pub path: String,
pub headers: HeaderMap,
pub body: Bytes,
}Expand description
HTTP Request received by server
Fields§
§method: MethodHTTP method
path: StringRequest path
headers: HeaderMapRequest headers
body: BytesRequest body
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