Enum trillium::KnownHeaderName
source · #[non_exhaustive]#[repr(u8)]pub enum KnownHeaderName {
Show 139 variants
Accept,
AcceptCh,
AcceptChLifetime,
AcceptCharset,
AcceptEncoding,
AcceptLanguage,
AcceptPushPolicy,
AcceptRanges,
AcceptSignature,
AccessControlAllowCredentials,
AccessControlAllowHeaders,
AccessControlAllowMethods,
AccessControlAllowOrigin,
AccessControlExposeHeaders,
AccessControlMaxAge,
AccessControlRequestHeaders,
AccessControlRequestMethod,
Age,
Allow,
AltSvc,
Authorization,
CacheControl,
ClearSiteData,
Connection,
ContentDpr,
ContentDisposition,
ContentEncoding,
ContentLanguage,
ContentLength,
ContentLocation,
ContentRange,
ContentSecurityPolicy,
ContentSecurityPolicyReportOnly,
ContentType,
Cookie,
Cookie2,
CrossOriginEmbedderPolicy,
CrossOriginOpenerPolicy,
CrossOriginResourcePolicy,
Dnt,
Dpr,
Date,
DeviceMemory,
Downlink,
Ect,
Etag,
EarlyData,
Expect,
ExpectCt,
Expires,
FeaturePolicy,
Forwarded,
From,
Host,
IfMatch,
IfModifiedSince,
IfNoneMatch,
IfRange,
IfUnmodifiedSince,
KeepAlive,
LargeAllocation,
LastEventId,
LastModified,
Link,
Location,
MaxForwards,
Nel,
Origin,
OriginIsolation,
PingFrom,
PingTo,
Pragma,
ProxyAuthenticate,
ProxyAuthorization,
ProxyConnection,
PublicKeyPins,
PublicKeyPinsReportOnly,
PushPolicy,
Rtt,
Range,
Referer,
ReferrerPolicy,
RefreshCache,
ReportTo,
RetryAfter,
SaveData,
SecChUa,
SecChUAMobile,
SecChUAPlatform,
SecFetchDest,
SecFetchMode,
SecFetchSite,
SecFetchUser,
SecGpc,
SecWebsocketAccept,
SecWebsocketExtensions,
SecWebsocketKey,
SecWebsocketProtocol,
SecWebsocketVersion,
Server,
ServerTiming,
ServiceWorkerAllowed,
SetCookie,
SetCookie2,
Signature,
SignedHeaders,
Sourcemap,
StrictTransportSecurity,
Te,
TimingAllowOrigin,
Trailer,
TransferEncoding,
Upgrade,
UpgradeInsecureRequests,
UserAgent,
Vary,
Via,
ViewportWidth,
WwwAuthenticate,
Warning,
Width,
XcontentTypeOptions,
XdnsPrefetchControl,
XdownloadOptions,
XfirefoxSpdy,
XforwardedBy,
XforwardedFor,
XforwardedHost,
XforwardedProto,
XforwardedSsl,
XframeOptions,
XpermittedCrossDomainPolicies,
Xpingback,
XpoweredBy,
XrequestId,
XrequestedWith,
XrobotsTag,
XuaCompatible,
XxssProtection,
}
Expand description
A short nonehaustive enum of headers that trillium can
represent as a u8. Use a KnownHeaderName
variant instead
of a &’static str anywhere possible, as it allows trillium
to skip parsing the header entirely.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Accept
The Accept header.
AcceptCh
The Accept-CH header.
AcceptChLifetime
The Accept-CH-Lifetime header.
AcceptCharset
The Accept-Charset header.
AcceptEncoding
The Accept-Encoding header.
AcceptLanguage
The Accept-Language header.
AcceptPushPolicy
The Accept-Push-Policy header.
AcceptRanges
The Accept-Ranges header.
AcceptSignature
The Accept-Signature header.
AccessControlAllowCredentials
The Access-Control-Allow-Credentials header.
AccessControlAllowHeaders
The Access-Control-Allow-Headers header.
AccessControlAllowMethods
The Access-Control-Allow-Methods header.
AccessControlAllowOrigin
The Access-Control-Allow-Origin header.
AccessControlExposeHeaders
The Access-Control-Expose-Headers header.
AccessControlMaxAge
The Access-Control-Max-Age header.
AccessControlRequestHeaders
The Access-Control-Request-Headers header.
AccessControlRequestMethod
The Access-Control-Request-Method header.
Age
The Age header.
Allow
The Allow header.
AltSvc
The Alt-Svc header.
Authorization
The Authorization header.
CacheControl
The Cache-Control header.
ClearSiteData
The Clear-Site-Data header.
Connection
The Connection header.
ContentDpr
The Content-DPR header.
ContentDisposition
The Content-Disposition header.
ContentEncoding
The Content-Encoding header.
ContentLanguage
The Content-Language header.
ContentLength
The Content-Length header.
ContentLocation
The Content-Location header.
ContentRange
The Content-Range header.
ContentSecurityPolicy
The Content-Security-Policy header.
ContentSecurityPolicyReportOnly
The Content-Security-Policy-Report-Only header.
ContentType
The Content-Type header.
Cookie
The Cookie header.
Cookie2
The Cookie2 header.
CrossOriginEmbedderPolicy
The Cross-Origin-Embedder-Policy header.
CrossOriginOpenerPolicy
The Cross-Origin-Opener-Policy header.
CrossOriginResourcePolicy
The Cross-Origin-Resource-Policy header.
Dnt
The DNT header.
Dpr
The DPR header.
Date
The Date header.
DeviceMemory
The Device-Memory header.
Downlink
The Downlink header.
Ect
The ECT header.
Etag
The ETag header.
EarlyData
The Early-Data header.
Expect
The Expect header.
ExpectCt
The Expect-CT header.
Expires
The Expires header.
FeaturePolicy
The Feature-Policy header.
Forwarded
The Forwarded header.
From
The From header.
Host
The Host header.
IfMatch
The If-Match header.
IfModifiedSince
The If-Modified-Since header.
IfNoneMatch
The If-None-Match header.
IfRange
The If-Range header.
IfUnmodifiedSince
The If-Unmodified-Since header.
KeepAlive
The Keep-Alive header.
LargeAllocation
The Large-Allocation header.
LastEventId
The Last-Event-ID header.
LastModified
The Last-Modified header.
Link
The Link header.
Location
The Location header.
MaxForwards
The Max-Forwards header.
Nel
The NEL header.
Origin
The Origin header.
OriginIsolation
The Origin-Isolation header.
PingFrom
The Ping-From header.
PingTo
The Ping-To header.
Pragma
The Pragma header.
ProxyAuthenticate
The Proxy-Authenticate header.
ProxyAuthorization
The Proxy-Authorization header.
ProxyConnection
The Proxy-Connection header.
PublicKeyPins
The Public-Key-Pins header.
PublicKeyPinsReportOnly
The Public-Key-Pins-Report-Only header.
PushPolicy
The Push-Policy header.
Rtt
The RTT header.
Range
The Range header.
Referer
The Referer header.
ReferrerPolicy
The Referrer-Policy header.
RefreshCache
The Refresh-Cache header.
ReportTo
The Report-To header.
RetryAfter
The Retry-After header.
SaveData
The Save-Data header.
SecChUa
The Sec-CH-UA header.
SecChUAMobile
The Sec-CH-UA-Mobile header.
SecChUAPlatform
The Sec-CH-UA-Platform header.
SecFetchDest
The Sec-Fetch-Dest header.
SecFetchMode
The Sec-Fetch-Mode header.
SecFetchSite
The Sec-Fetch-Site header.
SecFetchUser
The Sec-Fetch-User header.
SecGpc
The Sec-GPC header.
SecWebsocketAccept
The Sec-WebSocket-Accept header.
SecWebsocketExtensions
The Sec-WebSocket-Extensions header.
SecWebsocketKey
The Sec-WebSocket-Key header.
SecWebsocketProtocol
The Sec-WebSocket-Protocol header.
SecWebsocketVersion
The Sec-WebSocket-Version header.
Server
The Server header.
ServerTiming
The Server-Timing header.
ServiceWorkerAllowed
The Service-Worker-Allowed header.
SetCookie
The Set-Cookie header.
SetCookie2
The Set-Cookie2 header.
Signature
The Signature header.
SignedHeaders
The Signed-Headers header.
Sourcemap
The SourceMap header.
StrictTransportSecurity
The Strict-Transport-Security header.
Te
The TE header.
TimingAllowOrigin
The Timing-Allow-Origin header.
Trailer
The Trailer header.
TransferEncoding
The Transfer-Encoding header.
Upgrade
The Upgrade header.
UpgradeInsecureRequests
The Upgrade-Insecure-Requests header.
UserAgent
The User-Agent header.
Vary
The Vary header.
Via
The Via header.
ViewportWidth
The Viewport-Width header.
WwwAuthenticate
The WWW-Authenticate header.
Warning
The Warning header.
Width
The Width header.
XcontentTypeOptions
The X-Content-Type-Options header.
XdnsPrefetchControl
The X-DNS-Prefetch-Control header.
XdownloadOptions
The X-Download-Options header.
XfirefoxSpdy
The X-Firefox-Spdy header.
XforwardedBy
The X-Forwarded-By header.
XforwardedFor
The X-Forwarded-For header.
XforwardedHost
The X-Forwarded-Host header.
XforwardedProto
The X-Forwarded-Proto header.
XforwardedSsl
The X-Forwarded-SSL header.
XframeOptions
The X-Frame-Options header.
XpermittedCrossDomainPolicies
The X-Permitted-Cross-Domain-Policies header.
Xpingback
The X-Pingback header.
XpoweredBy
The X-Powered-By header.
XrequestId
The X-Request-Id header.
XrequestedWith
The X-Requested-With header.
XrobotsTag
The X-Robots-Tag header.
XuaCompatible
The X-UA-Compatible header.
XxssProtection
The X-XSS-Protection header.
Trait Implementations§
source§impl AsRef<str> for KnownHeaderName
impl AsRef<str> for KnownHeaderName
source§impl Clone for KnownHeaderName
impl Clone for KnownHeaderName
source§fn clone(&self) -> KnownHeaderName
fn clone(&self) -> KnownHeaderName
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for KnownHeaderName
impl Debug for KnownHeaderName
source§impl Display for KnownHeaderName
impl Display for KnownHeaderName
source§impl From<KnownHeaderName> for HeaderName<'_>
impl From<KnownHeaderName> for HeaderName<'_>
source§fn from(khn: KnownHeaderName) -> HeaderName<'_>
fn from(khn: KnownHeaderName) -> HeaderName<'_>
source§impl FromStr for KnownHeaderName
impl FromStr for KnownHeaderName
source§impl Hash for KnownHeaderName
impl Hash for KnownHeaderName
source§impl PartialEq<HeaderName<'_>> for KnownHeaderName
impl PartialEq<HeaderName<'_>> for KnownHeaderName
source§fn eq(&self, other: &HeaderName<'_>) -> bool
fn eq(&self, other: &HeaderName<'_>) -> bool
self
and other
values to be equal, and is used
by ==
.source§impl PartialEq<KnownHeaderName> for &HeaderName<'_>
impl PartialEq<KnownHeaderName> for &HeaderName<'_>
source§fn eq(&self, other: &KnownHeaderName) -> bool
fn eq(&self, other: &KnownHeaderName) -> bool
self
and other
values to be equal, and is used
by ==
.source§impl PartialEq<KnownHeaderName> for HeaderName<'_>
impl PartialEq<KnownHeaderName> for HeaderName<'_>
source§fn eq(&self, other: &KnownHeaderName) -> bool
fn eq(&self, other: &KnownHeaderName) -> bool
self
and other
values to be equal, and is used
by ==
.source§impl PartialEq<KnownHeaderName> for KnownHeaderName
impl PartialEq<KnownHeaderName> for KnownHeaderName
source§fn eq(&self, other: &KnownHeaderName) -> bool
fn eq(&self, other: &KnownHeaderName) -> bool
self
and other
values to be equal, and is used
by ==
.