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

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

Fields

Methods

impl Header
[src]

[src]

Creates a new Header with the given name and value.

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

Important traits for &'a mut [u8]
[src]

Return a borrowed representation of the Header name.

Important traits for &'a mut [u8]
[src]

Return a borrowed representation of the Header value.

[src]

name: value

Trait Implementations

impl Debug for Header
[src]

[src]

Formats the value using the given formatter. Read more

impl PartialEq for Header
[src]

[src]

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

[src]

This method tests for !=.

impl Eq for Header
[src]

impl Clone for Header
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

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

[src]

Performs the conversion.

impl FromIterator<Header> for Headers
[src]

[src]

Creates a value from an iterator. Read more

Auto Trait Implementations

impl Send for Header

impl Sync for Header