95 instantiations of KnownHeader
System.Net.Http (95)
System\Net\Http\Headers\KnownHeaders.cs (95)
15
public static readonly KnownHeader PseudoStatus = new
KnownHeader
(":status", HttpHeaderType.Response, parser: null);
16
public static readonly KnownHeader Accept = new
KnownHeader
("Accept", HttpHeaderType.Request, MediaTypeHeaderParser.MultipleValuesParser, null, H2StaticTable.Accept, H3StaticTable.AcceptAny);
17
public static readonly KnownHeader AcceptCharset = new
KnownHeader
("Accept-Charset", HttpHeaderType.Request, GenericHeaderParser.MultipleValueStringWithQualityParser, null, H2StaticTable.AcceptCharset);
18
public static readonly KnownHeader AcceptEncoding = new
KnownHeader
("Accept-Encoding", HttpHeaderType.Request, GenericHeaderParser.MultipleValueStringWithQualityParser, null, H2StaticTable.AcceptEncoding, H3StaticTable.AcceptEncodingGzipDeflateBr);
19
public static readonly KnownHeader AcceptLanguage = new
KnownHeader
("Accept-Language", HttpHeaderType.Request, GenericHeaderParser.MultipleValueStringWithQualityParser, null, H2StaticTable.AcceptLanguage, H3StaticTable.AcceptLanguage);
20
public static readonly KnownHeader AcceptPatch = new
KnownHeader
("Accept-Patch");
21
public static readonly KnownHeader AcceptRanges = new
KnownHeader
("Accept-Ranges", HttpHeaderType.Response, GenericHeaderParser.TokenListParser, null, H2StaticTable.AcceptRanges, H3StaticTable.AcceptRangesBytes);
22
public static readonly KnownHeader AccessControlAllowCredentials = new
KnownHeader
("Access-Control-Allow-Credentials", HttpHeaderType.Response, parser: null, new string[] { "true" }, http3StaticTableIndex: H3StaticTable.AccessControlAllowCredentials);
23
public static readonly KnownHeader AccessControlAllowHeaders = new
KnownHeader
("Access-Control-Allow-Headers", HttpHeaderType.Response, parser: null, new string[] { "*" }, http3StaticTableIndex: H3StaticTable.AccessControlAllowHeadersCacheControl);
24
public static readonly KnownHeader AccessControlAllowMethods = new
KnownHeader
("Access-Control-Allow-Methods", HttpHeaderType.Response, parser: null, new string[] { "*" }, http3StaticTableIndex: H3StaticTable.AccessControlAllowMethodsGet);
25
public static readonly KnownHeader AccessControlAllowOrigin = new
KnownHeader
("Access-Control-Allow-Origin", HttpHeaderType.Response, parser: null, new string[] { "*", "null" }, H2StaticTable.AccessControlAllowOrigin, H3StaticTable.AccessControlAllowOriginAny);
26
public static readonly KnownHeader AccessControlExposeHeaders = new
KnownHeader
("Access-Control-Expose-Headers", HttpHeaderType.Response, parser: null, new string[] { "*" }, H3StaticTable.AccessControlExposeHeadersContentLength);
27
public static readonly KnownHeader AccessControlMaxAge = new
KnownHeader
("Access-Control-Max-Age");
28
public static readonly KnownHeader Age = new
KnownHeader
("Age", HttpHeaderType.Response | HttpHeaderType.NonTrailing, TimeSpanHeaderParser.Parser, null, H2StaticTable.Age, H3StaticTable.Age0);
29
public static readonly KnownHeader Allow = new
KnownHeader
("Allow", HttpHeaderType.Content, GenericHeaderParser.TokenListParser, null, H2StaticTable.Allow);
30
public static readonly KnownHeader AltSvc = new
KnownHeader
("Alt-Svc", HttpHeaderType.Response, GetAltSvcHeaderParser(), http3StaticTableIndex: H3StaticTable.AltSvcClear);
31
public static readonly KnownHeader AltUsed = new
KnownHeader
("Alt-Used", HttpHeaderType.Request, parser: null);
32
public static readonly KnownHeader Authorization = new
KnownHeader
("Authorization", HttpHeaderType.Request | HttpHeaderType.NonTrailing, GenericHeaderParser.SingleValueAuthenticationParser, null, H2StaticTable.Authorization, H3StaticTable.Authorization);
33
public static readonly KnownHeader CacheControl = new
KnownHeader
("Cache-Control", HttpHeaderType.General | HttpHeaderType.NonTrailing, CacheControlHeaderParser.Parser, new string[] { "must-revalidate", "no-cache", "no-store", "no-transform", "private", "proxy-revalidate", "public" }, H2StaticTable.CacheControl, H3StaticTable.CacheControlMaxAge0);
34
public static readonly KnownHeader Connection = new
KnownHeader
("Connection", HttpHeaderType.General, GenericHeaderParser.TokenListParser, new string[] { "close" });
35
public static readonly KnownHeader ContentDisposition = new
KnownHeader
("Content-Disposition", HttpHeaderType.Content | HttpHeaderType.NonTrailing, GenericHeaderParser.ContentDispositionParser, new string[] { "inline", "attachment" }, H2StaticTable.ContentDisposition, H3StaticTable.ContentDisposition);
36
public static readonly KnownHeader ContentEncoding = new
KnownHeader
("Content-Encoding", HttpHeaderType.Content | HttpHeaderType.NonTrailing, GenericHeaderParser.TokenListParser, new string[] { "gzip", "deflate", "br", "compress", "identity" }, H2StaticTable.ContentEncoding, H3StaticTable.ContentEncodingBr);
37
public static readonly KnownHeader ContentLanguage = new
KnownHeader
("Content-Language", HttpHeaderType.Content, GenericHeaderParser.TokenListParser, null, H2StaticTable.ContentLanguage);
38
public static readonly KnownHeader ContentLength = new
KnownHeader
("Content-Length", HttpHeaderType.Content | HttpHeaderType.NonTrailing, Int64NumberHeaderParser.Parser, null, H2StaticTable.ContentLength, H3StaticTable.ContentLength0);
39
public static readonly KnownHeader ContentLocation = new
KnownHeader
("Content-Location", HttpHeaderType.Content | HttpHeaderType.NonTrailing, UriHeaderParser.RelativeOrAbsoluteUriParser, null, H2StaticTable.ContentLocation);
40
public static readonly KnownHeader ContentMD5 = new
KnownHeader
("Content-MD5", HttpHeaderType.Content, ByteArrayHeaderParser.Parser);
41
public static readonly KnownHeader ContentRange = new
KnownHeader
("Content-Range", HttpHeaderType.Content | HttpHeaderType.NonTrailing, GenericHeaderParser.ContentRangeParser, null, H2StaticTable.ContentRange);
42
public static readonly KnownHeader ContentSecurityPolicy = new
KnownHeader
("Content-Security-Policy", http3StaticTableIndex: H3StaticTable.ContentSecurityPolicyAllNone);
43
public static readonly KnownHeader ContentType = new
KnownHeader
("Content-Type", HttpHeaderType.Content | HttpHeaderType.NonTrailing, MediaTypeHeaderParser.SingleValueParser, null, H2StaticTable.ContentType, H3StaticTable.ContentTypeApplicationDnsMessage);
44
public static readonly KnownHeader Cookie = new
KnownHeader
("Cookie", HttpHeaderType.Custom, CookieHeaderParser.Parser, null, H2StaticTable.Cookie, H3StaticTable.Cookie);
45
public static readonly KnownHeader Cookie2 = new
KnownHeader
("Cookie2");
46
public static readonly KnownHeader Date = new
KnownHeader
("Date", HttpHeaderType.General | HttpHeaderType.NonTrailing, DateHeaderParser.Parser, null, H2StaticTable.Date, H3StaticTable.Date);
47
public static readonly KnownHeader ETag = new
KnownHeader
("ETag", HttpHeaderType.Response, GenericHeaderParser.SingleValueEntityTagParser, null, H2StaticTable.ETag, H3StaticTable.ETag);
48
public static readonly KnownHeader Expect = new
KnownHeader
("Expect", HttpHeaderType.Request | HttpHeaderType.NonTrailing, GenericHeaderParser.MultipleValueNameValueWithParametersParser, new string[] { "100-continue" }, H2StaticTable.Expect);
49
public static readonly KnownHeader ExpectCT = new
KnownHeader
("Expect-CT");
50
public static readonly KnownHeader Expires = new
KnownHeader
("Expires", HttpHeaderType.Content | HttpHeaderType.NonTrailing, DateHeaderParser.Parser, null, H2StaticTable.Expires);
51
public static readonly KnownHeader From = new
KnownHeader
("From", HttpHeaderType.Request, GenericHeaderParser.SingleValueParserWithoutValidation, null, H2StaticTable.From);
52
public static readonly KnownHeader GrpcEncoding = new
KnownHeader
("grpc-encoding", HttpHeaderType.Custom, null, new string[] { "identity", "gzip", "deflate" });
53
public static readonly KnownHeader GrpcMessage = new
KnownHeader
("grpc-message");
54
public static readonly KnownHeader GrpcStatus = new
KnownHeader
("grpc-status", HttpHeaderType.Custom, null, new string[] { "0" });
55
public static readonly KnownHeader Host = new
KnownHeader
("Host", HttpHeaderType.Request | HttpHeaderType.NonTrailing, GenericHeaderParser.HostParser, null, H2StaticTable.Host);
56
public static readonly KnownHeader IfMatch = new
KnownHeader
("If-Match", HttpHeaderType.Request | HttpHeaderType.NonTrailing, GenericHeaderParser.MultipleValueEntityTagParser, null, H2StaticTable.IfMatch);
57
public static readonly KnownHeader IfModifiedSince = new
KnownHeader
("If-Modified-Since", HttpHeaderType.Request | HttpHeaderType.NonTrailing, DateHeaderParser.Parser, null, H2StaticTable.IfModifiedSince, H3StaticTable.IfModifiedSince);
58
public static readonly KnownHeader IfNoneMatch = new
KnownHeader
("If-None-Match", HttpHeaderType.Request | HttpHeaderType.NonTrailing, GenericHeaderParser.MultipleValueEntityTagParser, null, H2StaticTable.IfNoneMatch, H3StaticTable.IfNoneMatch);
59
public static readonly KnownHeader IfRange = new
KnownHeader
("If-Range", HttpHeaderType.Request | HttpHeaderType.NonTrailing, GenericHeaderParser.RangeConditionParser, null, H2StaticTable.IfRange, H3StaticTable.IfRange);
60
public static readonly KnownHeader IfUnmodifiedSince = new
KnownHeader
("If-Unmodified-Since", HttpHeaderType.Request | HttpHeaderType.NonTrailing, DateHeaderParser.Parser, null, H2StaticTable.IfUnmodifiedSince);
61
public static readonly KnownHeader KeepAlive = new
KnownHeader
("Keep-Alive");
62
public static readonly KnownHeader LastModified = new
KnownHeader
("Last-Modified", HttpHeaderType.Content, DateHeaderParser.Parser, null, H2StaticTable.LastModified, H3StaticTable.LastModified);
63
public static readonly KnownHeader Link = new
KnownHeader
("Link", H2StaticTable.Link, H3StaticTable.Link);
64
public static readonly KnownHeader Location = new
KnownHeader
("Location", HttpHeaderType.Response | HttpHeaderType.NonTrailing, UriHeaderParser.RelativeOrAbsoluteUriParser, null, H2StaticTable.Location, H3StaticTable.Location);
65
public static readonly KnownHeader MaxForwards = new
KnownHeader
("Max-Forwards", HttpHeaderType.Request | HttpHeaderType.NonTrailing, Int32NumberHeaderParser.Parser, null, H2StaticTable.MaxForwards);
66
public static readonly KnownHeader Origin = new
KnownHeader
("Origin", http3StaticTableIndex: H3StaticTable.Origin);
67
public static readonly KnownHeader P3P = new
KnownHeader
("P3P");
68
public static readonly KnownHeader Pragma = new
KnownHeader
("Pragma", HttpHeaderType.General | HttpHeaderType.NonTrailing, GenericHeaderParser.MultipleValueNameValueParser, new string[] { "no-cache" });
69
public static readonly KnownHeader ProxyAuthenticate = new
KnownHeader
("Proxy-Authenticate", HttpHeaderType.Response | HttpHeaderType.NonTrailing, GenericHeaderParser.MultipleValueAuthenticationParser, null, H2StaticTable.ProxyAuthenticate);
70
public static readonly KnownHeader ProxyAuthorization = new
KnownHeader
("Proxy-Authorization", HttpHeaderType.Request | HttpHeaderType.NonTrailing, GenericHeaderParser.SingleValueAuthenticationParser, null, H2StaticTable.ProxyAuthorization);
71
public static readonly KnownHeader ProxyConnection = new
KnownHeader
("Proxy-Connection");
72
public static readonly KnownHeader ProxySupport = new
KnownHeader
("Proxy-Support");
73
public static readonly KnownHeader PublicKeyPins = new
KnownHeader
("Public-Key-Pins");
74
public static readonly KnownHeader Range = new
KnownHeader
("Range", HttpHeaderType.Request | HttpHeaderType.NonTrailing, GenericHeaderParser.RangeParser, null, H2StaticTable.Range, H3StaticTable.RangeBytes0ToAll);
75
public static readonly KnownHeader Referer = new
KnownHeader
("Referer", HttpHeaderType.Request, UriHeaderParser.RelativeOrAbsoluteUriParser, null, H2StaticTable.Referer, H3StaticTable.Referer); // NB: The spelling-mistake "Referer" for "Referrer" must be matched.
76
public static readonly KnownHeader ReferrerPolicy = new
KnownHeader
("Referrer-Policy", HttpHeaderType.Custom, null, new string[] { "strict-origin-when-cross-origin", "origin-when-cross-origin", "strict-origin", "origin", "same-origin", "no-referrer-when-downgrade", "no-referrer", "unsafe-url" });
77
public static readonly KnownHeader Refresh = new
KnownHeader
("Refresh", H2StaticTable.Refresh);
78
public static readonly KnownHeader RetryAfter = new
KnownHeader
("Retry-After", HttpHeaderType.Response | HttpHeaderType.NonTrailing, GenericHeaderParser.RetryConditionParser, null, H2StaticTable.RetryAfter);
79
public static readonly KnownHeader SecWebSocketAccept = new
KnownHeader
("Sec-WebSocket-Accept");
80
public static readonly KnownHeader SecWebSocketExtensions = new
KnownHeader
("Sec-WebSocket-Extensions");
81
public static readonly KnownHeader SecWebSocketKey = new
KnownHeader
("Sec-WebSocket-Key");
82
public static readonly KnownHeader SecWebSocketProtocol = new
KnownHeader
("Sec-WebSocket-Protocol");
83
public static readonly KnownHeader SecWebSocketVersion = new
KnownHeader
("Sec-WebSocket-Version");
84
public static readonly KnownHeader Server = new
KnownHeader
("Server", HttpHeaderType.Response, ProductInfoHeaderParser.MultipleValueParser, null, H2StaticTable.Server, H3StaticTable.Server);
85
public static readonly KnownHeader ServerTiming = new
KnownHeader
("Server-Timing");
86
public static readonly KnownHeader SetCookie = new
KnownHeader
("Set-Cookie", HttpHeaderType.Custom | HttpHeaderType.NonTrailing, null, null, H2StaticTable.SetCookie, H3StaticTable.SetCookie);
87
public static readonly KnownHeader SetCookie2 = new
KnownHeader
("Set-Cookie2", HttpHeaderType.Custom | HttpHeaderType.NonTrailing, null, null);
88
public static readonly KnownHeader StrictTransportSecurity = new
KnownHeader
("Strict-Transport-Security", H2StaticTable.StrictTransportSecurity, H3StaticTable.StrictTransportSecurityMaxAge31536000);
89
public static readonly KnownHeader TE = new
KnownHeader
("TE", HttpHeaderType.Request | HttpHeaderType.NonTrailing, TransferCodingHeaderParser.MultipleValueWithQualityParser, new string[] { "trailers", "compress", "deflate", "gzip" });
90
public static readonly KnownHeader TSV = new
KnownHeader
("TSV");
91
public static readonly KnownHeader Trailer = new
KnownHeader
("Trailer", HttpHeaderType.General | HttpHeaderType.NonTrailing, GenericHeaderParser.TokenListParser);
92
public static readonly KnownHeader TransferEncoding = new
KnownHeader
("Transfer-Encoding", HttpHeaderType.General | HttpHeaderType.NonTrailing, TransferCodingHeaderParser.MultipleValueParser, new string[] { "chunked", "compress", "deflate", "gzip", "identity" }, H2StaticTable.TransferEncoding);
93
public static readonly KnownHeader Upgrade = new
KnownHeader
("Upgrade", HttpHeaderType.General, GenericHeaderParser.MultipleValueProductParser);
94
public static readonly KnownHeader UpgradeInsecureRequests = new
KnownHeader
("Upgrade-Insecure-Requests", HttpHeaderType.Custom, null, new string[] { "1" }, http3StaticTableIndex: H3StaticTable.UpgradeInsecureRequests1);
95
public static readonly KnownHeader UserAgent = new
KnownHeader
("User-Agent", HttpHeaderType.Request, ProductInfoHeaderParser.MultipleValueParser, null, H2StaticTable.UserAgent, H3StaticTable.UserAgent);
96
public static readonly KnownHeader Vary = new
KnownHeader
("Vary", HttpHeaderType.Response | HttpHeaderType.NonTrailing, GenericHeaderParser.TokenListParser, new string[] { "*" }, H2StaticTable.Vary, H3StaticTable.VaryAcceptEncoding);
97
public static readonly KnownHeader Via = new
KnownHeader
("Via", HttpHeaderType.General, GenericHeaderParser.MultipleValueViaParser, null, H2StaticTable.Via);
98
public static readonly KnownHeader WWWAuthenticate = new
KnownHeader
("WWW-Authenticate", HttpHeaderType.Response | HttpHeaderType.NonTrailing, GenericHeaderParser.MultipleValueAuthenticationParser, null, H2StaticTable.WwwAuthenticate);
99
public static readonly KnownHeader Warning = new
KnownHeader
("Warning", HttpHeaderType.General | HttpHeaderType.NonTrailing, GenericHeaderParser.MultipleValueWarningParser);
100
public static readonly KnownHeader XAspNetVersion = new
KnownHeader
("X-AspNet-Version");
101
public static readonly KnownHeader XCache = new
KnownHeader
("X-Cache");
102
public static readonly KnownHeader XContentDuration = new
KnownHeader
("X-Content-Duration");
103
public static readonly KnownHeader XContentTypeOptions = new
KnownHeader
("X-Content-Type-Options", HttpHeaderType.Custom, null, new string[] { "nosniff" }, http3StaticTableIndex: H3StaticTable.XContentTypeOptionsNoSniff);
104
public static readonly KnownHeader XFrameOptions = new
KnownHeader
("X-Frame-Options", HttpHeaderType.Custom, null, new string[] { "DENY", "SAMEORIGIN" }, http3StaticTableIndex: H3StaticTable.XFrameOptionsDeny);
105
public static readonly KnownHeader XMSEdgeRef = new
KnownHeader
("X-MSEdge-Ref");
106
public static readonly KnownHeader XPoweredBy = new
KnownHeader
("X-Powered-By");
107
public static readonly KnownHeader XRequestID = new
KnownHeader
("X-Request-ID");
108
public static readonly KnownHeader XUACompatible = new
KnownHeader
("X-UA-Compatible");
109
public static readonly KnownHeader XXssProtection = new
KnownHeader
("X-XSS-Protection", HttpHeaderType.Custom, null, new string[] { "0", "1", "1; mode=block" });
116 references to KnownHeader
System.Net.Http (116)
System\Net\Http\Headers\HeaderDescriptor.cs (12)
23
public HeaderDescriptor(
KnownHeader
knownHeader)
35
public string Name => _descriptor is
KnownHeader
header ? header.Name : (_descriptor as string)!;
36
public HttpHeaderParser? Parser => (_descriptor as
KnownHeader
)?.Parser;
37
public HttpHeaderType HeaderType => _descriptor is
KnownHeader
knownHeader ? knownHeader.HeaderType : HttpHeaderType.Custom;
38
public
KnownHeader
? KnownHeader => _descriptor as
KnownHeader
;
40
public bool Equals(
KnownHeader
other) => ReferenceEquals(_descriptor, other);
54
public override int GetHashCode() => _descriptor is
KnownHeader
knownHeader ? knownHeader.GetHashCode() : StringComparer.OrdinalIgnoreCase.GetHashCode(_descriptor);
63
KnownHeader
? knownHeader = KnownHeaders.TryGetKnownHeader(headerName);
85
KnownHeader
? knownHeader = KnownHeaders.TryGetKnownHeader(headerName);
127
Debug.Assert(_descriptor is
KnownHeader
);
140
if (_descriptor is
KnownHeader
knownHeader)
System\Net\Http\Headers\HttpResponseHeaders.cs (1)
163
KnownHeader
? knownHeader = KnownHeaders.TryGetKnownHeader(descriptor.Name);
System\Net\Http\Headers\KnownHeaders.cs (100)
15
public static readonly
KnownHeader
PseudoStatus = new KnownHeader(":status", HttpHeaderType.Response, parser: null);
16
public static readonly
KnownHeader
Accept = new KnownHeader("Accept", HttpHeaderType.Request, MediaTypeHeaderParser.MultipleValuesParser, null, H2StaticTable.Accept, H3StaticTable.AcceptAny);
17
public static readonly
KnownHeader
AcceptCharset = new KnownHeader("Accept-Charset", HttpHeaderType.Request, GenericHeaderParser.MultipleValueStringWithQualityParser, null, H2StaticTable.AcceptCharset);
18
public static readonly
KnownHeader
AcceptEncoding = new KnownHeader("Accept-Encoding", HttpHeaderType.Request, GenericHeaderParser.MultipleValueStringWithQualityParser, null, H2StaticTable.AcceptEncoding, H3StaticTable.AcceptEncodingGzipDeflateBr);
19
public static readonly
KnownHeader
AcceptLanguage = new KnownHeader("Accept-Language", HttpHeaderType.Request, GenericHeaderParser.MultipleValueStringWithQualityParser, null, H2StaticTable.AcceptLanguage, H3StaticTable.AcceptLanguage);
20
public static readonly
KnownHeader
AcceptPatch = new KnownHeader("Accept-Patch");
21
public static readonly
KnownHeader
AcceptRanges = new KnownHeader("Accept-Ranges", HttpHeaderType.Response, GenericHeaderParser.TokenListParser, null, H2StaticTable.AcceptRanges, H3StaticTable.AcceptRangesBytes);
22
public static readonly
KnownHeader
AccessControlAllowCredentials = new KnownHeader("Access-Control-Allow-Credentials", HttpHeaderType.Response, parser: null, new string[] { "true" }, http3StaticTableIndex: H3StaticTable.AccessControlAllowCredentials);
23
public static readonly
KnownHeader
AccessControlAllowHeaders = new KnownHeader("Access-Control-Allow-Headers", HttpHeaderType.Response, parser: null, new string[] { "*" }, http3StaticTableIndex: H3StaticTable.AccessControlAllowHeadersCacheControl);
24
public static readonly
KnownHeader
AccessControlAllowMethods = new KnownHeader("Access-Control-Allow-Methods", HttpHeaderType.Response, parser: null, new string[] { "*" }, http3StaticTableIndex: H3StaticTable.AccessControlAllowMethodsGet);
25
public static readonly
KnownHeader
AccessControlAllowOrigin = new KnownHeader("Access-Control-Allow-Origin", HttpHeaderType.Response, parser: null, new string[] { "*", "null" }, H2StaticTable.AccessControlAllowOrigin, H3StaticTable.AccessControlAllowOriginAny);
26
public static readonly
KnownHeader
AccessControlExposeHeaders = new KnownHeader("Access-Control-Expose-Headers", HttpHeaderType.Response, parser: null, new string[] { "*" }, H3StaticTable.AccessControlExposeHeadersContentLength);
27
public static readonly
KnownHeader
AccessControlMaxAge = new KnownHeader("Access-Control-Max-Age");
28
public static readonly
KnownHeader
Age = new KnownHeader("Age", HttpHeaderType.Response | HttpHeaderType.NonTrailing, TimeSpanHeaderParser.Parser, null, H2StaticTable.Age, H3StaticTable.Age0);
29
public static readonly
KnownHeader
Allow = new KnownHeader("Allow", HttpHeaderType.Content, GenericHeaderParser.TokenListParser, null, H2StaticTable.Allow);
30
public static readonly
KnownHeader
AltSvc = new KnownHeader("Alt-Svc", HttpHeaderType.Response, GetAltSvcHeaderParser(), http3StaticTableIndex: H3StaticTable.AltSvcClear);
31
public static readonly
KnownHeader
AltUsed = new KnownHeader("Alt-Used", HttpHeaderType.Request, parser: null);
32
public static readonly
KnownHeader
Authorization = new KnownHeader("Authorization", HttpHeaderType.Request | HttpHeaderType.NonTrailing, GenericHeaderParser.SingleValueAuthenticationParser, null, H2StaticTable.Authorization, H3StaticTable.Authorization);
33
public static readonly
KnownHeader
CacheControl = new KnownHeader("Cache-Control", HttpHeaderType.General | HttpHeaderType.NonTrailing, CacheControlHeaderParser.Parser, new string[] { "must-revalidate", "no-cache", "no-store", "no-transform", "private", "proxy-revalidate", "public" }, H2StaticTable.CacheControl, H3StaticTable.CacheControlMaxAge0);
34
public static readonly
KnownHeader
Connection = new KnownHeader("Connection", HttpHeaderType.General, GenericHeaderParser.TokenListParser, new string[] { "close" });
35
public static readonly
KnownHeader
ContentDisposition = new KnownHeader("Content-Disposition", HttpHeaderType.Content | HttpHeaderType.NonTrailing, GenericHeaderParser.ContentDispositionParser, new string[] { "inline", "attachment" }, H2StaticTable.ContentDisposition, H3StaticTable.ContentDisposition);
36
public static readonly
KnownHeader
ContentEncoding = new KnownHeader("Content-Encoding", HttpHeaderType.Content | HttpHeaderType.NonTrailing, GenericHeaderParser.TokenListParser, new string[] { "gzip", "deflate", "br", "compress", "identity" }, H2StaticTable.ContentEncoding, H3StaticTable.ContentEncodingBr);
37
public static readonly
KnownHeader
ContentLanguage = new KnownHeader("Content-Language", HttpHeaderType.Content, GenericHeaderParser.TokenListParser, null, H2StaticTable.ContentLanguage);
38
public static readonly
KnownHeader
ContentLength = new KnownHeader("Content-Length", HttpHeaderType.Content | HttpHeaderType.NonTrailing, Int64NumberHeaderParser.Parser, null, H2StaticTable.ContentLength, H3StaticTable.ContentLength0);
39
public static readonly
KnownHeader
ContentLocation = new KnownHeader("Content-Location", HttpHeaderType.Content | HttpHeaderType.NonTrailing, UriHeaderParser.RelativeOrAbsoluteUriParser, null, H2StaticTable.ContentLocation);
40
public static readonly
KnownHeader
ContentMD5 = new KnownHeader("Content-MD5", HttpHeaderType.Content, ByteArrayHeaderParser.Parser);
41
public static readonly
KnownHeader
ContentRange = new KnownHeader("Content-Range", HttpHeaderType.Content | HttpHeaderType.NonTrailing, GenericHeaderParser.ContentRangeParser, null, H2StaticTable.ContentRange);
42
public static readonly
KnownHeader
ContentSecurityPolicy = new KnownHeader("Content-Security-Policy", http3StaticTableIndex: H3StaticTable.ContentSecurityPolicyAllNone);
43
public static readonly
KnownHeader
ContentType = new KnownHeader("Content-Type", HttpHeaderType.Content | HttpHeaderType.NonTrailing, MediaTypeHeaderParser.SingleValueParser, null, H2StaticTable.ContentType, H3StaticTable.ContentTypeApplicationDnsMessage);
44
public static readonly
KnownHeader
Cookie = new KnownHeader("Cookie", HttpHeaderType.Custom, CookieHeaderParser.Parser, null, H2StaticTable.Cookie, H3StaticTable.Cookie);
45
public static readonly
KnownHeader
Cookie2 = new KnownHeader("Cookie2");
46
public static readonly
KnownHeader
Date = new KnownHeader("Date", HttpHeaderType.General | HttpHeaderType.NonTrailing, DateHeaderParser.Parser, null, H2StaticTable.Date, H3StaticTable.Date);
47
public static readonly
KnownHeader
ETag = new KnownHeader("ETag", HttpHeaderType.Response, GenericHeaderParser.SingleValueEntityTagParser, null, H2StaticTable.ETag, H3StaticTable.ETag);
48
public static readonly
KnownHeader
Expect = new KnownHeader("Expect", HttpHeaderType.Request | HttpHeaderType.NonTrailing, GenericHeaderParser.MultipleValueNameValueWithParametersParser, new string[] { "100-continue" }, H2StaticTable.Expect);
49
public static readonly
KnownHeader
ExpectCT = new KnownHeader("Expect-CT");
50
public static readonly
KnownHeader
Expires = new KnownHeader("Expires", HttpHeaderType.Content | HttpHeaderType.NonTrailing, DateHeaderParser.Parser, null, H2StaticTable.Expires);
51
public static readonly
KnownHeader
From = new KnownHeader("From", HttpHeaderType.Request, GenericHeaderParser.SingleValueParserWithoutValidation, null, H2StaticTable.From);
52
public static readonly
KnownHeader
GrpcEncoding = new KnownHeader("grpc-encoding", HttpHeaderType.Custom, null, new string[] { "identity", "gzip", "deflate" });
53
public static readonly
KnownHeader
GrpcMessage = new KnownHeader("grpc-message");
54
public static readonly
KnownHeader
GrpcStatus = new KnownHeader("grpc-status", HttpHeaderType.Custom, null, new string[] { "0" });
55
public static readonly
KnownHeader
Host = new KnownHeader("Host", HttpHeaderType.Request | HttpHeaderType.NonTrailing, GenericHeaderParser.HostParser, null, H2StaticTable.Host);
56
public static readonly
KnownHeader
IfMatch = new KnownHeader("If-Match", HttpHeaderType.Request | HttpHeaderType.NonTrailing, GenericHeaderParser.MultipleValueEntityTagParser, null, H2StaticTable.IfMatch);
57
public static readonly
KnownHeader
IfModifiedSince = new KnownHeader("If-Modified-Since", HttpHeaderType.Request | HttpHeaderType.NonTrailing, DateHeaderParser.Parser, null, H2StaticTable.IfModifiedSince, H3StaticTable.IfModifiedSince);
58
public static readonly
KnownHeader
IfNoneMatch = new KnownHeader("If-None-Match", HttpHeaderType.Request | HttpHeaderType.NonTrailing, GenericHeaderParser.MultipleValueEntityTagParser, null, H2StaticTable.IfNoneMatch, H3StaticTable.IfNoneMatch);
59
public static readonly
KnownHeader
IfRange = new KnownHeader("If-Range", HttpHeaderType.Request | HttpHeaderType.NonTrailing, GenericHeaderParser.RangeConditionParser, null, H2StaticTable.IfRange, H3StaticTable.IfRange);
60
public static readonly
KnownHeader
IfUnmodifiedSince = new KnownHeader("If-Unmodified-Since", HttpHeaderType.Request | HttpHeaderType.NonTrailing, DateHeaderParser.Parser, null, H2StaticTable.IfUnmodifiedSince);
61
public static readonly
KnownHeader
KeepAlive = new KnownHeader("Keep-Alive");
62
public static readonly
KnownHeader
LastModified = new KnownHeader("Last-Modified", HttpHeaderType.Content, DateHeaderParser.Parser, null, H2StaticTable.LastModified, H3StaticTable.LastModified);
63
public static readonly
KnownHeader
Link = new KnownHeader("Link", H2StaticTable.Link, H3StaticTable.Link);
64
public static readonly
KnownHeader
Location = new KnownHeader("Location", HttpHeaderType.Response | HttpHeaderType.NonTrailing, UriHeaderParser.RelativeOrAbsoluteUriParser, null, H2StaticTable.Location, H3StaticTable.Location);
65
public static readonly
KnownHeader
MaxForwards = new KnownHeader("Max-Forwards", HttpHeaderType.Request | HttpHeaderType.NonTrailing, Int32NumberHeaderParser.Parser, null, H2StaticTable.MaxForwards);
66
public static readonly
KnownHeader
Origin = new KnownHeader("Origin", http3StaticTableIndex: H3StaticTable.Origin);
67
public static readonly
KnownHeader
P3P = new KnownHeader("P3P");
68
public static readonly
KnownHeader
Pragma = new KnownHeader("Pragma", HttpHeaderType.General | HttpHeaderType.NonTrailing, GenericHeaderParser.MultipleValueNameValueParser, new string[] { "no-cache" });
69
public static readonly
KnownHeader
ProxyAuthenticate = new KnownHeader("Proxy-Authenticate", HttpHeaderType.Response | HttpHeaderType.NonTrailing, GenericHeaderParser.MultipleValueAuthenticationParser, null, H2StaticTable.ProxyAuthenticate);
70
public static readonly
KnownHeader
ProxyAuthorization = new KnownHeader("Proxy-Authorization", HttpHeaderType.Request | HttpHeaderType.NonTrailing, GenericHeaderParser.SingleValueAuthenticationParser, null, H2StaticTable.ProxyAuthorization);
71
public static readonly
KnownHeader
ProxyConnection = new KnownHeader("Proxy-Connection");
72
public static readonly
KnownHeader
ProxySupport = new KnownHeader("Proxy-Support");
73
public static readonly
KnownHeader
PublicKeyPins = new KnownHeader("Public-Key-Pins");
74
public static readonly
KnownHeader
Range = new KnownHeader("Range", HttpHeaderType.Request | HttpHeaderType.NonTrailing, GenericHeaderParser.RangeParser, null, H2StaticTable.Range, H3StaticTable.RangeBytes0ToAll);
75
public static readonly
KnownHeader
Referer = new KnownHeader("Referer", HttpHeaderType.Request, UriHeaderParser.RelativeOrAbsoluteUriParser, null, H2StaticTable.Referer, H3StaticTable.Referer); // NB: The spelling-mistake "Referer" for "Referrer" must be matched.
76
public static readonly
KnownHeader
ReferrerPolicy = new KnownHeader("Referrer-Policy", HttpHeaderType.Custom, null, new string[] { "strict-origin-when-cross-origin", "origin-when-cross-origin", "strict-origin", "origin", "same-origin", "no-referrer-when-downgrade", "no-referrer", "unsafe-url" });
77
public static readonly
KnownHeader
Refresh = new KnownHeader("Refresh", H2StaticTable.Refresh);
78
public static readonly
KnownHeader
RetryAfter = new KnownHeader("Retry-After", HttpHeaderType.Response | HttpHeaderType.NonTrailing, GenericHeaderParser.RetryConditionParser, null, H2StaticTable.RetryAfter);
79
public static readonly
KnownHeader
SecWebSocketAccept = new KnownHeader("Sec-WebSocket-Accept");
80
public static readonly
KnownHeader
SecWebSocketExtensions = new KnownHeader("Sec-WebSocket-Extensions");
81
public static readonly
KnownHeader
SecWebSocketKey = new KnownHeader("Sec-WebSocket-Key");
82
public static readonly
KnownHeader
SecWebSocketProtocol = new KnownHeader("Sec-WebSocket-Protocol");
83
public static readonly
KnownHeader
SecWebSocketVersion = new KnownHeader("Sec-WebSocket-Version");
84
public static readonly
KnownHeader
Server = new KnownHeader("Server", HttpHeaderType.Response, ProductInfoHeaderParser.MultipleValueParser, null, H2StaticTable.Server, H3StaticTable.Server);
85
public static readonly
KnownHeader
ServerTiming = new KnownHeader("Server-Timing");
86
public static readonly
KnownHeader
SetCookie = new KnownHeader("Set-Cookie", HttpHeaderType.Custom | HttpHeaderType.NonTrailing, null, null, H2StaticTable.SetCookie, H3StaticTable.SetCookie);
87
public static readonly
KnownHeader
SetCookie2 = new KnownHeader("Set-Cookie2", HttpHeaderType.Custom | HttpHeaderType.NonTrailing, null, null);
88
public static readonly
KnownHeader
StrictTransportSecurity = new KnownHeader("Strict-Transport-Security", H2StaticTable.StrictTransportSecurity, H3StaticTable.StrictTransportSecurityMaxAge31536000);
89
public static readonly
KnownHeader
TE = new KnownHeader("TE", HttpHeaderType.Request | HttpHeaderType.NonTrailing, TransferCodingHeaderParser.MultipleValueWithQualityParser, new string[] { "trailers", "compress", "deflate", "gzip" });
90
public static readonly
KnownHeader
TSV = new KnownHeader("TSV");
91
public static readonly
KnownHeader
Trailer = new KnownHeader("Trailer", HttpHeaderType.General | HttpHeaderType.NonTrailing, GenericHeaderParser.TokenListParser);
92
public static readonly
KnownHeader
TransferEncoding = new KnownHeader("Transfer-Encoding", HttpHeaderType.General | HttpHeaderType.NonTrailing, TransferCodingHeaderParser.MultipleValueParser, new string[] { "chunked", "compress", "deflate", "gzip", "identity" }, H2StaticTable.TransferEncoding);
93
public static readonly
KnownHeader
Upgrade = new KnownHeader("Upgrade", HttpHeaderType.General, GenericHeaderParser.MultipleValueProductParser);
94
public static readonly
KnownHeader
UpgradeInsecureRequests = new KnownHeader("Upgrade-Insecure-Requests", HttpHeaderType.Custom, null, new string[] { "1" }, http3StaticTableIndex: H3StaticTable.UpgradeInsecureRequests1);
95
public static readonly
KnownHeader
UserAgent = new KnownHeader("User-Agent", HttpHeaderType.Request, ProductInfoHeaderParser.MultipleValueParser, null, H2StaticTable.UserAgent, H3StaticTable.UserAgent);
96
public static readonly
KnownHeader
Vary = new KnownHeader("Vary", HttpHeaderType.Response | HttpHeaderType.NonTrailing, GenericHeaderParser.TokenListParser, new string[] { "*" }, H2StaticTable.Vary, H3StaticTable.VaryAcceptEncoding);
97
public static readonly
KnownHeader
Via = new KnownHeader("Via", HttpHeaderType.General, GenericHeaderParser.MultipleValueViaParser, null, H2StaticTable.Via);
98
public static readonly
KnownHeader
WWWAuthenticate = new KnownHeader("WWW-Authenticate", HttpHeaderType.Response | HttpHeaderType.NonTrailing, GenericHeaderParser.MultipleValueAuthenticationParser, null, H2StaticTable.WwwAuthenticate);
99
public static readonly
KnownHeader
Warning = new KnownHeader("Warning", HttpHeaderType.General | HttpHeaderType.NonTrailing, GenericHeaderParser.MultipleValueWarningParser);
100
public static readonly
KnownHeader
XAspNetVersion = new KnownHeader("X-AspNet-Version");
101
public static readonly
KnownHeader
XCache = new KnownHeader("X-Cache");
102
public static readonly
KnownHeader
XContentDuration = new KnownHeader("X-Content-Duration");
103
public static readonly
KnownHeader
XContentTypeOptions = new KnownHeader("X-Content-Type-Options", HttpHeaderType.Custom, null, new string[] { "nosniff" }, http3StaticTableIndex: H3StaticTable.XContentTypeOptionsNoSniff);
104
public static readonly
KnownHeader
XFrameOptions = new KnownHeader("X-Frame-Options", HttpHeaderType.Custom, null, new string[] { "DENY", "SAMEORIGIN" }, http3StaticTableIndex: H3StaticTable.XFrameOptionsDeny);
105
public static readonly
KnownHeader
XMSEdgeRef = new KnownHeader("X-MSEdge-Ref");
106
public static readonly
KnownHeader
XPoweredBy = new KnownHeader("X-Powered-By");
107
public static readonly
KnownHeader
XRequestID = new KnownHeader("X-Request-ID");
108
public static readonly
KnownHeader
XUACompatible = new KnownHeader("X-UA-Compatible");
109
public static readonly
KnownHeader
XXssProtection = new KnownHeader("X-XSS-Protection", HttpHeaderType.Custom, null, new string[] { "0", "1", "1; mode=block" });
160
private static
KnownHeader
? GetCandidate<T>(T key)
415
internal static
KnownHeader
? TryGetKnownHeader(string name)
417
KnownHeader
? candidate = GetCandidate(new StringAccessor(name));
426
internal static unsafe
KnownHeader
? TryGetKnownHeader(ReadOnlySpan<byte> name)
430
KnownHeader
? candidate = GetCandidate(new BytePtrAccessor(p, name.Length));
System\Net\Http\SocketsHttpHandler\Http2Connection.cs (1)
1430
KnownHeader
? knownHeader = header.Key.KnownHeader;
System\Net\Http\SocketsHttpHandler\Http3RequestStream.cs (1)
728
KnownHeader
? knownHeader = header.Key.KnownHeader;
System\Net\Http\SocketsHttpHandler\HttpConnection.cs (1)
426
if (header.Key.KnownHeader is
KnownHeader
knownHeader)