Struct headers_ext::Host[][src]

pub struct Host(_);

The Host header.

Methods

impl Host
[src]

Get the hostname, such as example.domain.

Get the optional port number.

Trait Implementations

impl Clone for Host
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for Host
[src]

Formats the value using the given formatter. Read more

impl PartialEq for Host
[src]

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

This method tests for !=.

impl Eq for Host
[src]

impl Hash for Host
[src]

Feeds this value into the given [Hasher]. Read more

Feeds a slice of this type into the given [Hasher]. Read more

impl PartialOrd for Host
[src]

This method returns an ordering between self and other values if one exists. Read more

This method tests less than (for self and other) and is used by the < operator. Read more

This method tests less than or equal to (for self and other) and is used by the <= operator. Read more

This method tests greater than (for self and other) and is used by the > operator. Read more

This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more

impl Header for Host
[src]

NAME: &'static HeaderName = &::http::header::HOST

The name of this header.

Decode this type from a HeaderValue.

Encode this type to a HeaderMap. Read more

impl From<Authority> for Host
[src]

Performs the conversion.

impl Display for Host
[src]

Formats the value using the given formatter. Read more

Auto Trait Implementations

impl Send for Host

impl Sync for Host