Trait http_stub::header::HeaderFormat
[−]
[src]
pub trait HeaderFormat: Send + Sync + HeaderClone + 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
fn fmt_header(&self, f: &mut Formatter) -> Result<(), Error>
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 AccessControlAllowMethods
impl HeaderFormat for AccessControlMaxAge
impl HeaderFormat for AccessControlExposeHeaders
impl HeaderFormat for AccessControlAllowCredentials
impl HeaderFormat for Accept
impl HeaderFormat for AccessControlAllowOrigin
impl HeaderFormat for AccessControlRequestHeaders
impl HeaderFormat for AccessControlAllowHeaders