Struct hyper::header::HeaderFormatter [] [src]

pub struct HeaderFormatter<'a, H: HeaderFormat>(pub &'a H);
Deprecated

: The semantics of formatting a HeaderFormat directly are not clear

A wrapper around any Header with a Display impl that calls fmt_header.

This can be used like so: format!("{}", HeaderFormatter(&header)) to get the 'value string' representation of this Header.

Note: This may not necessarily be the value written to stream, such as with the SetCookie header.

Trait Implementations

impl<'a, H: HeaderFormat> Display for HeaderFormatter<'a, H>
[src]

[src]

Formats the value using the given formatter. Read more

impl<'a, H: HeaderFormat> Debug for HeaderFormatter<'a, H>
[src]

[src]

Formats the value using the given formatter. Read more