Struct futures_http::reader::Responser
source · pub struct Responser<S> { /* private fields */ }Expand description
Http response packet parser.
In general, please do not create Requester directly but use
parse_response or parse_response_with to parse the stream.
Implementations§
source§impl<S> Responser<S>
impl<S> Responser<S>
pub async fn parse_parts(self) -> ParseResult<(Parts, Bytes, S)>
sourcepub async fn parse(self) -> ParseResult<Response<BodyReader>>
pub async fn parse(self) -> ParseResult<Response<BodyReader>>
Try parse http request header parts and generate Request object.
Auto Trait Implementations§
impl<S> !Freeze for Responser<S>
impl<S> !RefUnwindSafe for Responser<S>
impl<S> Send for Responser<S>where
S: Send,
impl<S> Sync for Responser<S>where
S: Sync,
impl<S> Unpin for Responser<S>where
S: Unpin,
impl<S> !UnwindSafe for Responser<S>
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