Trait hyper::header::HeaderFormat
[-]
[+]
[src]
pub trait HeaderFormat: HeaderClone + Any + Send + Sync { fn fmt_header(&self, fmt: &mut Formatter) -> Result; }
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
fn fmt_header(&self, fmt: &mut Formatter) -> Result
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.
Implementors
impl HeaderFormat for Accept
impl HeaderFormat for AcceptEncoding
impl HeaderFormat for Allow
impl<S: Scheme> HeaderFormat for Authorization<S>
impl HeaderFormat for CacheControl
impl HeaderFormat for Cookies
impl HeaderFormat for Connection
impl HeaderFormat for ContentLength
impl HeaderFormat for ContentType
impl HeaderFormat for Date
impl HeaderFormat for Etag
impl HeaderFormat for Expires
impl HeaderFormat for Host
impl HeaderFormat for LastModified
impl HeaderFormat for IfModifiedSince
impl HeaderFormat for Location
impl HeaderFormat for Server
impl HeaderFormat for SetCookie
impl HeaderFormat for TransferEncoding
impl HeaderFormat for Upgrade
impl HeaderFormat for UserAgent
impl HeaderFormat for Vary