Struct webmachine_rust::headers::HeaderValue [] [src]

pub struct HeaderValue {
    pub value: String,
    pub params: HashMap<String, String>,
    pub quote: bool,
}

Struct to represent a header value and a map of header value parameters

Fields

Value of the header

Map of header value parameters

If the header should be qouted

Methods

impl HeaderValue
[src]

Parses a header value string into a HeaderValue struct

Creates a basic header value that has no parameters

Converts this header value into a string representation

Parses a weak ETag value. Weak etags are in the form W/. Returns the contents of the qouted string if it matches, otherwise returns None.

Convertes this header value into a quoted header value

impl HeaderValue
[src]

Converts the header value into a media type

impl HeaderValue
[src]

Converts the header value into a media type

impl HeaderValue
[src]

Converts the header value into a media type

impl HeaderValue
[src]

Converts the header value into a media type

Trait Implementations

impl Debug for HeaderValue
[src]

Formats the value using the given formatter.

impl Clone for HeaderValue
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Eq for HeaderValue
[src]

impl PartialEq<HeaderValue> for HeaderValue
[src]

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

This method tests for !=.

impl PartialEq<String> for HeaderValue
[src]

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

This method tests for !=.

impl PartialEq<str> for HeaderValue
[src]

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

This method tests for !=.

impl Hash for HeaderValue
[src]

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

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