tungstenite::handshake::headers

Trait FromHttparse

Source
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.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

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