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
Expand description
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.
Tuple Fields
0: &'a H
👎 Deprecated:
The semantics of formatting a HeaderFormat directly are not clear