pub struct Request<IN, R>{ /* private fields */ }
Expand description
The ongoing HTTP request.
Implementations§
Source§impl<IN, R> Request<IN, R>
impl<IN, R> Request<IN, R>
Sourcepub fn is_complete(&self) -> bool
pub fn is_complete(&self) -> bool
Check if the request is completely processed.
Sourcepub fn push_close(&mut self)
pub fn push_close(&mut self)
Notify the HTTP processing that the source has closed.
Sourcepub fn complete(self) -> (HttpConnection<IN>, R)
pub fn complete(self) -> (HttpConnection<IN>, R)
Stop processing the request, gives back the handler and connection.
Auto Trait Implementations§
impl<IN, R> Freeze for Request<IN, R>
impl<IN, R> RefUnwindSafe for Request<IN, R>
impl<IN, R> Send for Request<IN, R>where
R: Send,
impl<IN, R> Sync for Request<IN, R>where
R: Sync,
impl<IN, R> Unpin for Request<IN, R>
impl<IN, R> UnwindSafe for Request<IN, R>
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