Trait reqwest::header::HeaderFormat [] [src]

pub trait HeaderFormat: HeaderClone + Send + Sync + Any + Debug + Typeable {
    fn fmt_header(&self, f: &mut Formatter) -> Result<(), Error>;
}

A trait for any object that will represent a header field and value.

This trait represents the formatting of a Header for output to a TcpStream.

Required Methods

Format a header to be output into a TcpStream.

This method is not allowed to introduce an Err not produced by the passed-in Formatter.

Trait Implementations

impl<'a> Display for &'a (HeaderFormat + 'static + Send + Sync)
[src]

[src]

Formats the value using the given formatter. Read more

Implementors