pub struct Request {
pub method: Method,
pub uri: Uri,
pub version: Version,
pub headers: HeaderMap,
pub body: Bytes,
pub extensions: Extensions,
/* private fields */
}Fields§
§method: MethodThe HTTP method of the request.
For example, GET, POST, PUT, DELETE, etc.
uri: UriThe URI of the request.
version: VersionThe HTTP version of the request.
headers: HeaderMapThe headers of the request.
body: BytesThe body of the request.
extensions: ExtensionsThe extensions of the request.
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 !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