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
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.
Trait Implementations
impl<'a> Display for &'a (HeaderFormat + 'static + Send + Sync)
[src]
fn fmt(&self, f: &mut Formatter) -> Result<(), Error>
[src]
Formats the value using the given formatter. Read more
Implementors
impl HeaderFormat for Date
impl HeaderFormat for AccessControlRequestHeaders
impl HeaderFormat for ContentRange
impl HeaderFormat for Expires
impl HeaderFormat for CacheControl
impl HeaderFormat for ReferrerPolicy
impl HeaderFormat for Connection
impl HeaderFormat for AccessControlRequestMethod
impl HeaderFormat for Location
impl HeaderFormat for ETag
impl HeaderFormat for AcceptRanges
impl HeaderFormat for LastModified
impl HeaderFormat for Prefer
impl HeaderFormat for TransferEncoding
impl HeaderFormat for ContentType
impl HeaderFormat for Origin
impl HeaderFormat for Allow
impl HeaderFormat for AccessControlAllowMethods
impl HeaderFormat for ContentLength
impl HeaderFormat for IfModifiedSince
impl HeaderFormat for IfNoneMatch
impl HeaderFormat for Upgrade
impl HeaderFormat for Pragma
impl HeaderFormat for AcceptLanguage
impl HeaderFormat for AccessControlMaxAge
impl HeaderFormat for UserAgent
impl HeaderFormat for Vary
impl HeaderFormat for Expect
impl HeaderFormat for ContentLanguage
impl HeaderFormat for IfUnmodifiedSince
impl HeaderFormat for ContentEncoding
impl HeaderFormat for From
impl HeaderFormat for Range
impl<S> HeaderFormat for Authorization<S> where
S: Scheme + Any,
<S as FromStr>::Err: 'static,impl HeaderFormat for Referer
impl HeaderFormat for Host
impl HeaderFormat for Link
impl HeaderFormat for AccessControlExposeHeaders
impl HeaderFormat for IfRange
impl HeaderFormat for AcceptEncoding
impl HeaderFormat for AcceptCharset
impl HeaderFormat for Cookie
impl HeaderFormat for SetCookie
impl HeaderFormat for PreferenceApplied
impl HeaderFormat for StrictTransportSecurity
impl HeaderFormat for AccessControlAllowOrigin
impl HeaderFormat for Server
impl HeaderFormat for AccessControlAllowHeaders
impl HeaderFormat for ContentDisposition
impl HeaderFormat for IfMatch
impl HeaderFormat for AccessControlAllowCredentials
impl HeaderFormat for Accept