Struct tungstenite::handshake::headers::Headers [] [src]

pub struct Headers { /* fields omitted */ }

HTTP request or response headers.

Methods

impl Headers
[src]

Get first header with the given name, if any.

Iterate over all headers with the given name.

Check if the given header has the given value.

Check if the given header has the given value (case-insensitive).

Allows to iterate over available headers.

Trait Implementations

impl Debug for Headers
[src]

Formats the value using the given formatter.

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

Convert raw object into parsed HTTP headers.