[][src]Trait tungstenite::handshake::headers::FromHttparse

pub trait FromHttparse<T>: Sized {
    fn from_httparse(raw: T) -> Result<Self>;
}

Trait to convert raw objects into HTTP parseables.

Required methods

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

Convert raw object into parsed HTTP headers.

Loading content...

Implementors

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

impl<'h, 'b: 'h> FromHttparse<Response<'h, 'b>> for Response[src]

impl<'h, 'b: 'h> FromHttparse<Request<'h, 'b>> for Request[src]

Loading content...