pub struct Request { /* private fields */ }Expand description
A fully-received HTTP request: the request line, headers, and a fully buffered body.
The engine buffers the entire body before yielding a Request, so handlers
see a complete message. Streaming request bodies are out of scope for this
version.
Implementations§
Source§impl Request
impl Request
Sourcepub fn target(&self) -> &str
pub fn target(&self) -> &str
The raw request target (origin-form path, possibly with a query string), exactly as sent on the request line.
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