74 references to H3StaticTable
System.Net.Http (74)
System\Net\Http\Headers\KnownHeaders.cs (38)
17
public static readonly KnownHeader Accept = new("Accept", HttpHeaderType.Request, MediaTypeHeaderParser.MultipleValuesParser, null, H2StaticTable.Accept,
H3StaticTable
.AcceptAny);
19
public static readonly KnownHeader AcceptEncoding = new("Accept-Encoding", HttpHeaderType.Request, GenericHeaderParser.MultipleValueStringWithQualityParser, null, H2StaticTable.AcceptEncoding,
H3StaticTable
.AcceptEncodingGzipDeflateBr);
20
public static readonly KnownHeader AcceptLanguage = new("Accept-Language", HttpHeaderType.Request, GenericHeaderParser.MultipleValueStringWithQualityParser, null, H2StaticTable.AcceptLanguage,
H3StaticTable
.AcceptLanguage);
22
public static readonly KnownHeader AcceptRanges = new("Accept-Ranges", HttpHeaderType.Response, GenericHeaderParser.TokenListParser, ["bytes", "none"], H2StaticTable.AcceptRanges,
H3StaticTable
.AcceptRangesBytes);
23
public static readonly KnownHeader AccessControlAllowCredentials = new("Access-Control-Allow-Credentials", HttpHeaderType.Response, parser: null, ["true"], http3StaticTableIndex:
H3StaticTable
.AccessControlAllowCredentials);
24
public static readonly KnownHeader AccessControlAllowHeaders = new("Access-Control-Allow-Headers", HttpHeaderType.Response, parser: null, ["*"], http3StaticTableIndex:
H3StaticTable
.AccessControlAllowHeadersCacheControl);
25
public static readonly KnownHeader AccessControlAllowMethods = new("Access-Control-Allow-Methods", HttpHeaderType.Response, parser: null, ["POST", "*"], http3StaticTableIndex:
H3StaticTable
.AccessControlAllowMethodsGet);
26
public static readonly KnownHeader AccessControlAllowOrigin = new("Access-Control-Allow-Origin", HttpHeaderType.Response, parser: null, ["*", "null"], H2StaticTable.AccessControlAllowOrigin,
H3StaticTable
.AccessControlAllowOriginAny);
27
public static readonly KnownHeader AccessControlExposeHeaders = new("Access-Control-Expose-Headers", HttpHeaderType.Response, parser: null, ["*"],
H3StaticTable
.AccessControlExposeHeadersContentLength);
29
public static readonly KnownHeader Age = new("Age", HttpHeaderType.Response | HttpHeaderType.NonTrailing, TimeSpanHeaderParser.Parser, ["0"], H2StaticTable.Age,
H3StaticTable
.Age0);
31
public static readonly KnownHeader AltSvc = new("Alt-Svc", HttpHeaderType.Response, GetAltSvcHeaderParser(), ["h3=\":443\"", "h3=\":443\"; ma=2592000", "clear"], http3StaticTableIndex:
H3StaticTable
.AltSvcClear);
33
public static readonly KnownHeader Authorization = new("Authorization", HttpHeaderType.Request | HttpHeaderType.NonTrailing, GenericHeaderParser.SingleValueAuthenticationParser, null, H2StaticTable.Authorization,
H3StaticTable
.Authorization);
34
public static readonly KnownHeader CacheControl = new("Cache-Control", HttpHeaderType.General | HttpHeaderType.NonTrailing, CacheControlHeaderParser.Parser, ["must-revalidate", "no-cache", "no-store", "no-transform", "private", "proxy-revalidate", "public"], H2StaticTable.CacheControl,
H3StaticTable
.CacheControlMaxAge0);
36
public static readonly KnownHeader ContentDisposition = new("Content-Disposition", HttpHeaderType.Content | HttpHeaderType.NonTrailing, GenericHeaderParser.ContentDispositionParser, ["inline", "attachment"], H2StaticTable.ContentDisposition,
H3StaticTable
.ContentDisposition);
37
public static readonly KnownHeader ContentEncoding = new("Content-Encoding", HttpHeaderType.Content | HttpHeaderType.NonTrailing, GenericHeaderParser.TokenListParser, ["gzip", "deflate", "br", "zstd", "compress", "identity"], H2StaticTable.ContentEncoding,
H3StaticTable
.ContentEncodingBr);
39
public static readonly KnownHeader ContentLength = new("Content-Length", HttpHeaderType.Content | HttpHeaderType.NonTrailing, Int64NumberHeaderParser.Parser, null, H2StaticTable.ContentLength,
H3StaticTable
.ContentLength0);
43
public static readonly KnownHeader ContentSecurityPolicy = new("Content-Security-Policy", ["upgrade-insecure-requests", "frame-ancestors 'self'"], http3StaticTableIndex:
H3StaticTable
.ContentSecurityPolicyAllNone);
44
public static readonly KnownHeader ContentType = new("Content-Type", HttpHeaderType.Content | HttpHeaderType.NonTrailing, MediaTypeHeaderParser.SingleValueParser, null, H2StaticTable.ContentType,
H3StaticTable
.ContentTypeApplicationDnsMessage);
45
public static readonly KnownHeader Cookie = new("Cookie", HttpHeaderType.Custom, CookieHeaderParser.Parser, null, H2StaticTable.Cookie,
H3StaticTable
.Cookie);
48
public static readonly KnownHeader Date = new("Date", HttpHeaderType.General | HttpHeaderType.NonTrailing, DateHeaderParser.Parser, null, H2StaticTable.Date,
H3StaticTable
.Date);
49
public static readonly KnownHeader ETag = new("ETag", HttpHeaderType.Response, GenericHeaderParser.SingleValueEntityTagParser, null, H2StaticTable.ETag,
H3StaticTable
.ETag);
59
public static readonly KnownHeader IfModifiedSince = new("If-Modified-Since", HttpHeaderType.Request | HttpHeaderType.NonTrailing, DateHeaderParser.Parser, null, H2StaticTable.IfModifiedSince,
H3StaticTable
.IfModifiedSince);
60
public static readonly KnownHeader IfNoneMatch = new("If-None-Match", HttpHeaderType.Request | HttpHeaderType.NonTrailing, GenericHeaderParser.MultipleValueEntityTagParser, null, H2StaticTable.IfNoneMatch,
H3StaticTable
.IfNoneMatch);
61
public static readonly KnownHeader IfRange = new("If-Range", HttpHeaderType.Request | HttpHeaderType.NonTrailing, GenericHeaderParser.RangeConditionParser, null, H2StaticTable.IfRange,
H3StaticTable
.IfRange);
64
public static readonly KnownHeader LastModified = new("Last-Modified", HttpHeaderType.Content, DateHeaderParser.Parser, null, H2StaticTable.LastModified,
H3StaticTable
.LastModified);
65
public static readonly KnownHeader Link = new("Link", null, H2StaticTable.Link,
H3StaticTable
.Link);
66
public static readonly KnownHeader Location = new("Location", HttpHeaderType.Response | HttpHeaderType.NonTrailing, UriHeaderParser.RelativeOrAbsoluteUriParser, null, H2StaticTable.Location,
H3StaticTable
.Location);
68
public static readonly KnownHeader Origin = new("Origin", http3StaticTableIndex:
H3StaticTable
.Origin);
76
public static readonly KnownHeader Range = new("Range", HttpHeaderType.Request | HttpHeaderType.NonTrailing, GenericHeaderParser.RangeParser, null, H2StaticTable.Range,
H3StaticTable
.RangeBytes0ToAll);
77
public static readonly KnownHeader Referer = new("Referer", HttpHeaderType.Request, UriHeaderParser.RelativeOrAbsoluteUriParser, null, H2StaticTable.Referer,
H3StaticTable
.Referer); // NB: The spelling-mistake "Referer" for "Referrer" must be matched.
86
public static readonly KnownHeader Server = new("Server", HttpHeaderType.Response, ProductInfoHeaderParser.MultipleValueParser, null, H2StaticTable.Server,
H3StaticTable
.Server);
88
public static readonly KnownHeader SetCookie = new("Set-Cookie", HttpHeaderType.Custom | HttpHeaderType.NonTrailing, null, null, H2StaticTable.SetCookie,
H3StaticTable
.SetCookie);
90
public static readonly KnownHeader StrictTransportSecurity = new("Strict-Transport-Security", ["max-age=31536000", "max-age=31536000; includeSubDomains; preload", "max-age=31536000; includeSubDomains", "max-age=63072000; includeSubDomains; preload"], H2StaticTable.StrictTransportSecurity,
H3StaticTable
.StrictTransportSecurityMaxAge31536000);
97
public static readonly KnownHeader UpgradeInsecureRequests = new("Upgrade-Insecure-Requests", ["1"], http3StaticTableIndex:
H3StaticTable
.UpgradeInsecureRequests1);
98
public static readonly KnownHeader UserAgent = new("User-Agent", HttpHeaderType.Request, ProductInfoHeaderParser.MultipleValueParser, null, H2StaticTable.UserAgent,
H3StaticTable
.UserAgent);
99
public static readonly KnownHeader Vary = new("Vary", HttpHeaderType.Response | HttpHeaderType.NonTrailing, GenericHeaderParser.TokenListParser, ["Accept-Encoding", "accept-encoding", "Origin", "Referer", "*"], H2StaticTable.Vary,
H3StaticTable
.VaryAcceptEncoding);
106
public static readonly KnownHeader XContentTypeOptions = new("X-Content-Type-Options", ["nosniff"], http3StaticTableIndex:
H3StaticTable
.XContentTypeOptionsNoSniff);
107
public static readonly KnownHeader XFrameOptions = new("X-Frame-Options", ["SAMEORIGIN", "DENY", "sameorigin", "deny"], http3StaticTableIndex:
H3StaticTable
.XFrameOptionsDeny);
System\Net\Http\HttpMethod.cs (7)
14
public static HttpMethod Get { get; } = new("GET",
H3StaticTable
.MethodGet);
15
public static HttpMethod Put { get; } = new("PUT",
H3StaticTable
.MethodPut);
16
public static HttpMethod Post { get; } = new("POST",
H3StaticTable
.MethodPost);
17
public static HttpMethod Delete { get; } = new("DELETE",
H3StaticTable
.MethodDelete);
18
public static HttpMethod Head { get; } = new("HEAD",
H3StaticTable
.MethodHead);
19
public static HttpMethod Options { get; } = new("OPTIONS",
H3StaticTable
.MethodOptions);
29
public static HttpMethod Connect { get; } = new("CONNECT",
H3StaticTable
.MethodConnect);
System\Net\Http\HttpMethod.SocketsHttpHandler.cs (8)
31
if (http3Index ==
H3StaticTable
.MethodConnect)
35
else if (http3Index ==
H3StaticTable
.MethodHead)
41
MustHaveRequestBody = http3Index is not (
H3StaticTable
.MethodGet or
H3StaticTable
.MethodOptions or
H3StaticTable
.MethodDelete);
79
H3StaticTable
.MethodGet => [0x80 | H2StaticTable.MethodGet],
80
H3StaticTable
.MethodPost => [0x80 | H2StaticTable.MethodPost],
100
: QPackEncoder.EncodeLiteralHeaderFieldWithStaticNameReferenceToArray(
H3StaticTable
.MethodGet, knownMethod?.Method ?? Method);
System\Net\Http\SocketsHttpHandler\ConnectionPool\HttpConnectionPool.cs (1)
235
_http3EncodedAuthorityHostHeader = QPackEncoder.EncodeLiteralHeaderFieldWithStaticNameReferenceToArray(
H3StaticTable
.Authority, hostHeader);
System\Net\Http\SocketsHttpHandler\Http3RequestStream.cs (20)
682
BufferIndexedHeader(
H3StaticTable
.SchemeHttps);
686
BufferLiteralHeaderWithStaticNameReference(
H3StaticTable
.Authority, host);
697
BufferIndexedHeader(
H3StaticTable
.PathSlash);
701
BufferLiteralHeaderWithStaticNameReference(
H3StaticTable
.PathSlash, pathAndQuery);
726
BufferLiteralHeaderWithStaticNameReference(
H3StaticTable
.Cookie, cookiesFromContainer, valueEncoding);
735
BufferIndexedHeader(
H3StaticTable
.ContentLength0);
1064
H3StaticTable
.Status103 => 103,
1065
H3StaticTable
.Status200 => 200,
1066
H3StaticTable
.Status304 => 304,
1067
H3StaticTable
.Status404 => 404,
1068
H3StaticTable
.Status503 => 503,
1069
H3StaticTable
.Status100 => 100,
1070
H3StaticTable
.Status204 => 204,
1071
H3StaticTable
.Status206 => 206,
1072
H3StaticTable
.Status302 => 302,
1073
H3StaticTable
.Status400 => 400,
1074
H3StaticTable
.Status403 => 403,
1075
H3StaticTable
.Status421 => 421,
1076
H3StaticTable
.Status425 => 425,
1077
H3StaticTable
.Status500 => 500,