pub struct Request {
pub head: Head,
pub body: Incoming,
}Fields§
§head: Head§body: IncomingImplementations§
Source§impl Request
impl Request
pub fn new( request: Request<Incoming>, local_addr: SocketAddr, remote_addr: SocketAddr, ) -> Self
pub fn split(self) -> (Head, RequestBody)
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