Enum http::header::name::StandardHeader
source · enum StandardHeader {
Show 81 variants
Accept,
AcceptCharset,
AcceptEncoding,
AcceptLanguage,
AcceptRanges,
AccessControlAllowCredentials,
AccessControlAllowHeaders,
AccessControlAllowMethods,
AccessControlAllowOrigin,
AccessControlExposeHeaders,
AccessControlMaxAge,
AccessControlRequestHeaders,
AccessControlRequestMethod,
Age,
Allow,
AltSvc,
Authorization,
CacheControl,
CacheStatus,
CdnCacheControl,
Connection,
ContentDisposition,
ContentEncoding,
ContentLanguage,
ContentLength,
ContentLocation,
ContentRange,
ContentSecurityPolicy,
ContentSecurityPolicyReportOnly,
ContentType,
Cookie,
Dnt,
Date,
Etag,
Expect,
Expires,
Forwarded,
From,
Host,
IfMatch,
IfModifiedSince,
IfNoneMatch,
IfRange,
IfUnmodifiedSince,
LastModified,
Link,
Location,
MaxForwards,
Origin,
Pragma,
ProxyAuthenticate,
ProxyAuthorization,
PublicKeyPins,
PublicKeyPinsReportOnly,
Range,
Referer,
ReferrerPolicy,
Refresh,
RetryAfter,
SecWebSocketAccept,
SecWebSocketExtensions,
SecWebSocketKey,
SecWebSocketProtocol,
SecWebSocketVersion,
Server,
SetCookie,
StrictTransportSecurity,
Te,
Trailer,
TransferEncoding,
UserAgent,
Upgrade,
UpgradeInsecureRequests,
Vary,
Via,
Warning,
WwwAuthenticate,
XContentTypeOptions,
XDnsPrefetchControl,
XFrameOptions,
XXssProtection,
}
Variants§
Accept
AcceptCharset
AcceptEncoding
AcceptLanguage
AcceptRanges
AccessControlAllowCredentials
AccessControlAllowHeaders
AccessControlAllowMethods
AccessControlAllowOrigin
AccessControlExposeHeaders
AccessControlMaxAge
AccessControlRequestHeaders
AccessControlRequestMethod
Age
Allow
AltSvc
Authorization
CacheControl
CacheStatus
CdnCacheControl
Connection
ContentDisposition
ContentEncoding
ContentLanguage
ContentLength
ContentLocation
ContentRange
ContentSecurityPolicy
ContentSecurityPolicyReportOnly
ContentType
Cookie
Dnt
Date
Etag
Expect
Expires
Forwarded
From
Host
IfMatch
IfModifiedSince
IfNoneMatch
IfRange
IfUnmodifiedSince
LastModified
Link
Location
MaxForwards
Origin
Pragma
ProxyAuthenticate
ProxyAuthorization
PublicKeyPins
PublicKeyPinsReportOnly
Range
Referer
ReferrerPolicy
Refresh
RetryAfter
SecWebSocketAccept
SecWebSocketExtensions
SecWebSocketKey
SecWebSocketProtocol
SecWebSocketVersion
Server
SetCookie
StrictTransportSecurity
Te
Trailer
TransferEncoding
UserAgent
Upgrade
UpgradeInsecureRequests
Vary
Via
Warning
WwwAuthenticate
XContentTypeOptions
XDnsPrefetchControl
XFrameOptions
XXssProtection
Implementations§
source§impl StandardHeader
impl StandardHeader
fn as_str(&self) -> &'static str
const fn from_bytes(name_bytes: &[u8]) -> Option<StandardHeader>
Trait Implementations§
source§impl Clone for StandardHeader
impl Clone for StandardHeader
source§fn clone(&self) -> StandardHeader
fn clone(&self) -> StandardHeader
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for StandardHeader
impl Debug for StandardHeader
source§impl<'a> From<StandardHeader> for HdrName<'a>
impl<'a> From<StandardHeader> for HdrName<'a>
source§fn from(hdr: StandardHeader) -> HdrName<'a>
fn from(hdr: StandardHeader) -> HdrName<'a>
Converts to this type from the input type.
source§impl Hash for StandardHeader
impl Hash for StandardHeader
source§impl PartialEq for StandardHeader
impl PartialEq for StandardHeader
source§fn eq(&self, other: &StandardHeader) -> bool
fn eq(&self, other: &StandardHeader) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for StandardHeader
impl Eq for StandardHeader
impl StructuralPartialEq for StandardHeader
Auto Trait Implementations§
impl Freeze for StandardHeader
impl RefUnwindSafe for StandardHeader
impl Send for StandardHeader
impl Sync for StandardHeader
impl Unpin for StandardHeader
impl UnwindSafe for StandardHeader
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more