pub type Response = Response<Option<Vec<u8>>>;
Expand description

Client response type.

Aliased Type§

struct Response {
    head: Parts,
    body: Option<Vec<u8, Global>>,
}

Fields§

§head: Parts§body: Option<Vec<u8, Global>>

Trait Implementations§

source§

impl<'h, 'b: 'h> FromHttparse<Response<'h, 'b>> for Response

source§

fn from_httparse(raw: Response<'h, 'b>) -> Result<Self>

Convert raw object into parsed HTTP headers.
source§

impl TryParse for Response

source§

fn try_parse(buf: &[u8]) -> Result<Option<(usize, Self)>>

Return Ok(None) if incomplete, Err on syntax error.