pub enum HeaderValue<'a> {
Show 13 variants
Host(String),
ContentLength(usize),
Encoding(TransferEncodingValue),
Connection(ConnectionValue),
Upgrade(&'a [u8]),
Cookie(Vec<RequestCookie<'a>>),
Other(&'a [u8], &'a [u8]),
ExpectContinue,
Forwarded(&'a [u8]),
XForwardedFor(&'a [u8]),
XForwardedProto,
XForwardedPort,
Error,
}
Immutably borrows from an owned value.
Read more
Mutably borrows from an owned value.
Read more
Returns the argument unchanged.
Calls U::from(self)
.
That is, this conversion is whatever the implementation of
From<T> for U
chooses to do.
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.