pub struct Request {
pub method: String,
pub path: String,
pub headers: Vec<(String, String)>,
pub body: String,
}Expand description
One request as it arrived on the wire.
Fields§
§method: StringThe request method, such as GET or POST.
path: StringThe request target, including its query string.
headers: Vec<(String, String)>Header names are lower-cased; order matches the wire.
body: StringThe request body, decoded as UTF-8 lossily.
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 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