Struct reqwest::header::HeaderFormatter [] [src]

pub struct HeaderFormatter<'a, H>(pub &'a H)
where
    H: HeaderFormat
;
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> Display for HeaderFormatter<'a, H> where
    H: HeaderFormat
[src]

[src]

Formats the value using the given formatter. Read more

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

[src]

Formats the value using the given formatter. Read more