Struct headers_core::ToValues[][src]

pub struct ToValues<'a> { /* fields omitted */ }

A builder to append HeaderValues to during Header::encode.

Methods

impl<'a> ToValues<'a>
[src]

Append the HeaderValue to the existing list of headers.

While this can be called multiple times, most headers should only call this once. The exceptions are outliers like Set-Cookie.

Append the impl Display to the list of headers.

Panics

Encoding HeaderValues is expected to be infallible. However, not all UTF-8 sequences are valid for a HeaderValue. The type passed here must ensure that its resulting string is a valid HeaderValue.

Trait Implementations

impl<'a> Debug for ToValues<'a>
[src]

Formats the value using the given formatter. Read more

Auto Trait Implementations

impl<'a> Send for ToValues<'a>

impl<'a> Sync for ToValues<'a>