pub(crate) trait FromHttparse<T>: Sized {
    // Required method
    fn from_httparse(raw: T) -> Result<Self>;
}
Expand description

Trait to convert raw objects into HTTP parseables.

Required Methods§

source

fn from_httparse(raw: T) -> Result<Self>

Convert raw object into parsed HTTP headers.

Implementations on Foreign Types§

source§

impl<'b: 'h, 'h> FromHttparse<&'b [Header<'h>]> for HeaderMap

source§

fn from_httparse(raw: &'b [Header<'h>]) -> Result<Self>

Implementors§

source§

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

source§

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