Struct httpbis::solicit::header::Header [] [src]

pub struct Header {
    pub name: Bytes,
    pub value: Bytes,
}

Fields

Methods

impl Header
[src]

Creates a new Header with the given name and value.

The name and value need to be convertible into a HeaderPart.

Return a borrowed representation of the Header name.

Return a borrowed representation of the Header value.

Trait Implementations

impl Clone for Header
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl PartialEq for Header
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl Debug for Header
[src]

Formats the value using the given formatter.

impl<N: Into<HeaderPart>, V: Into<HeaderPart>> From<(N, V)> for Header
[src]

Performs the conversion.