pub struct Request {
pub method: Method,
pub path: String,
pub query: Option<String>,
pub headers: HeaderMap,
pub body: Vec<u8>,
}Expand description
Minimal HTTP request model.
Fields§
§method: MethodRequest method.
path: StringRaw path without query string.
query: Option<String>Raw query string without leading ?.
headers: HeaderMapRequest headers.
body: Vec<u8>Fully buffered body bytes.
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 UnsafeUnpin 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