246 references to KnownHeaders
System.Net.Http (246)
System\Net\Http\Headers\HeaderDescriptor.cs (5)
31
Debug.Assert(customHeader ||
KnownHeaders
.TryGetKnownHeader(headerName) is null, $"The {nameof(KnownHeader)} overload should be used for {headerName}");
63
KnownHeader? knownHeader =
KnownHeaders
.TryGetKnownHeader(headerName);
85
KnownHeader? knownHeader =
KnownHeaders
.TryGetKnownHeader(headerName);
153
if (knownHeader ==
KnownHeaders
.ContentType)
161
else if (knownHeader ==
KnownHeaders
.Location)
System\Net\Http\Headers\HttpContentHeaders.cs (20)
18
_allow ??= new HttpHeaderValueCollection<string>(
KnownHeaders
.Allow.Descriptor, this);
22
get { return (ContentDispositionHeaderValue?)GetSingleParsedValue(
KnownHeaders
.ContentDisposition.Descriptor); }
23
set { SetOrRemoveParsedValue(
KnownHeaders
.ContentDisposition.Descriptor, value); }
29
_contentEncoding ??= new HttpHeaderValueCollection<string>(
KnownHeaders
.ContentEncoding.Descriptor, this);
32
_contentLanguage ??= new HttpHeaderValueCollection<string>(
KnownHeaders
.ContentLanguage.Descriptor, this);
39
object? storedValue = GetSingleParsedValue(
KnownHeaders
.ContentLength.Descriptor);
51
SetParsedValue(
KnownHeaders
.ContentLength.Descriptor, (object)calculatedLength.Value);
68
SetOrRemoveParsedValue(
KnownHeaders
.ContentLength.Descriptor, value); // box long value
75
get { return (Uri?)GetSingleParsedValue(
KnownHeaders
.ContentLocation.Descriptor); }
76
set { SetOrRemoveParsedValue(
KnownHeaders
.ContentLocation.Descriptor, value); }
81
get { return (byte[]?)GetSingleParsedValue(
KnownHeaders
.ContentMD5.Descriptor); }
82
set { SetOrRemoveParsedValue(
KnownHeaders
.ContentMD5.Descriptor, value); }
87
get { return (ContentRangeHeaderValue?)GetSingleParsedValue(
KnownHeaders
.ContentRange.Descriptor); }
88
set { SetOrRemoveParsedValue(
KnownHeaders
.ContentRange.Descriptor, value); }
93
get { return (MediaTypeHeaderValue?)GetSingleParsedValue(
KnownHeaders
.ContentType.Descriptor); }
94
set { SetOrRemoveParsedValue(
KnownHeaders
.ContentType.Descriptor, value); }
99
get { return HeaderUtilities.GetDateTimeOffsetValue(
KnownHeaders
.Expires.Descriptor, this, DateTimeOffset.MinValue); }
100
set { SetOrRemoveParsedValue(
KnownHeaders
.Expires.Descriptor, value); }
105
get { return HeaderUtilities.GetDateTimeOffsetValue(
KnownHeaders
.LastModified.Descriptor, this); }
106
set { SetOrRemoveParsedValue(
KnownHeaders
.LastModified.Descriptor, value); }
System\Net\Http\Headers\HttpGeneralHeaders.cs (20)
25
get { return (CacheControlHeaderValue?)_parent.GetSingleParsedValue(
KnownHeaders
.CacheControl.Descriptor); }
26
set { _parent.SetOrRemoveParsedValue(
KnownHeaders
.CacheControl.Descriptor, value); }
43
if (!_parent.ContainsParsedValue(
KnownHeaders
.Connection.Descriptor, HeaderUtilities.ConnectionClose))
45
_parent.AddParsedValue(
KnownHeaders
.Connection.Descriptor, HeaderUtilities.ConnectionClose);
52
_parent.RemoveParsedValue(
KnownHeaders
.Connection.Descriptor, HeaderUtilities.ConnectionClose);
59
if (parent.ContainsParsedValue(
KnownHeaders
.Connection.Descriptor, HeaderUtilities.ConnectionClose))
72
get { return HeaderUtilities.GetDateTimeOffsetValue(
KnownHeaders
.Date.Descriptor, _parent); }
73
set { _parent.SetOrRemoveParsedValue(
KnownHeaders
.Date.Descriptor, value); }
77
_pragma ??= new HttpHeaderValueCollection<NameValueHeaderValue>(
KnownHeaders
.Pragma.Descriptor, _parent);
80
_trailer ??= new HttpHeaderValueCollection<string>(
KnownHeaders
.Trailer.Descriptor, _parent);
84
if (parent.TryGetHeaderValue(
KnownHeaders
.TransferEncoding.Descriptor, out object? value))
92
if (parent.ContainsParsedValue(
KnownHeaders
.TransferEncoding.Descriptor, HeaderUtilities.TransferEncodingChunked))
120
if (!_parent.ContainsParsedValue(
KnownHeaders
.TransferEncoding.Descriptor, HeaderUtilities.TransferEncodingChunked))
122
_parent.AddParsedValue(
KnownHeaders
.TransferEncoding.Descriptor, HeaderUtilities.TransferEncodingChunked);
129
_parent.RemoveParsedValue(
KnownHeaders
.TransferEncoding.Descriptor, HeaderUtilities.TransferEncodingChunked);
135
_upgrade ??= new HttpHeaderValueCollection<ProductHeaderValue>(
KnownHeaders
.Upgrade.Descriptor, _parent);
138
_via ??= new HttpHeaderValueCollection<ViaHeaderValue>(
KnownHeaders
.Via.Descriptor, _parent);
141
_warning ??= new HttpHeaderValueCollection<WarningHeaderValue>(
KnownHeaders
.Warning.Descriptor, _parent);
144
_connection ??= new HttpHeaderValueCollection<string>(
KnownHeaders
.Connection.Descriptor, _parent);
147
_transferEncoding ??= new HttpHeaderValueCollection<TransferCodingHeaderValue>(
KnownHeaders
.TransferEncoding.Descriptor, _parent);
System\Net\Http\Headers\HttpRequestHeaders.cs (33)
38
GetSpecializedCollection(AcceptSlot, static thisRef => new HttpHeaderValueCollection<MediaTypeWithQualityHeaderValue>(
KnownHeaders
.Accept.Descriptor, thisRef));
41
GetSpecializedCollection(AcceptCharsetSlot, static thisRef => new HttpHeaderValueCollection<StringWithQualityHeaderValue>(
KnownHeaders
.AcceptCharset.Descriptor, thisRef));
44
GetSpecializedCollection(AcceptEncodingSlot, static thisRef => new HttpHeaderValueCollection<StringWithQualityHeaderValue>(
KnownHeaders
.AcceptEncoding.Descriptor, thisRef));
47
GetSpecializedCollection(AcceptLanguageSlot, static thisRef => new HttpHeaderValueCollection<StringWithQualityHeaderValue>(
KnownHeaders
.AcceptLanguage.Descriptor, thisRef));
51
get { return (AuthenticationHeaderValue?)GetSingleParsedValue(
KnownHeaders
.Authorization.Descriptor); }
52
set { SetOrRemoveParsedValue(
KnownHeaders
.Authorization.Descriptor, value); }
59
if (ContainsParsedValue(
KnownHeaders
.Expect.Descriptor, HeaderUtilities.ExpectContinue))
75
if (!ContainsParsedValue(
KnownHeaders
.Expect.Descriptor, HeaderUtilities.ExpectContinue))
77
AddParsedValue(
KnownHeaders
.Expect.Descriptor, HeaderUtilities.ExpectContinue);
84
RemoveParsedValue(
KnownHeaders
.Expect.Descriptor, HeaderUtilities.ExpectContinue);
91
get { return (string?)GetSingleParsedValue(
KnownHeaders
.From.Descriptor); }
102
SetOrRemoveParsedValue(
KnownHeaders
.From.Descriptor, value);
108
get { return (string?)GetSingleParsedValue(
KnownHeaders
.Host.Descriptor); }
121
SetOrRemoveParsedValue(
KnownHeaders
.Host.Descriptor, value);
126
GetSpecializedCollection(IfMatchSlot, static thisRef => new HttpHeaderValueCollection<EntityTagHeaderValue>(
KnownHeaders
.IfMatch.Descriptor, thisRef));
130
get { return HeaderUtilities.GetDateTimeOffsetValue(
KnownHeaders
.IfModifiedSince.Descriptor, this); }
131
set { SetOrRemoveParsedValue(
KnownHeaders
.IfModifiedSince.Descriptor, value); }
135
GetSpecializedCollection(IfNoneMatchSlot, static thisRef => new HttpHeaderValueCollection<EntityTagHeaderValue>(
KnownHeaders
.IfNoneMatch.Descriptor, thisRef));
139
get { return (RangeConditionHeaderValue?)GetSingleParsedValue(
KnownHeaders
.IfRange.Descriptor); }
140
set { SetOrRemoveParsedValue(
KnownHeaders
.IfRange.Descriptor, value); }
145
get { return HeaderUtilities.GetDateTimeOffsetValue(
KnownHeaders
.IfUnmodifiedSince.Descriptor, this); }
146
set { SetOrRemoveParsedValue(
KnownHeaders
.IfUnmodifiedSince.Descriptor, value); }
153
object? storedValue = GetSingleParsedValue(
KnownHeaders
.MaxForwards.Descriptor);
160
set { SetOrRemoveParsedValue(
KnownHeaders
.MaxForwards.Descriptor, value); }
178
get { return (AuthenticationHeaderValue?)GetSingleParsedValue(
KnownHeaders
.ProxyAuthorization.Descriptor); }
179
set { SetOrRemoveParsedValue(
KnownHeaders
.ProxyAuthorization.Descriptor, value); }
184
get { return (RangeHeaderValue?)GetSingleParsedValue(
KnownHeaders
.Range.Descriptor); }
185
set { SetOrRemoveParsedValue(
KnownHeaders
.Range.Descriptor, value); }
190
get { return (Uri?)GetSingleParsedValue(
KnownHeaders
.Referer.Descriptor); }
191
set { SetOrRemoveParsedValue(
KnownHeaders
.Referer.Descriptor, value); }
195
GetSpecializedCollection(TransferEncodingSlot, static thisRef => new HttpHeaderValueCollection<TransferCodingWithQualityHeaderValue>(
KnownHeaders
.TE.Descriptor, thisRef));
198
GetSpecializedCollection(UserAgentSlot, static thisRef => new HttpHeaderValueCollection<ProductInfoHeaderValue>(
KnownHeaders
.UserAgent.Descriptor, thisRef));
201
GetSpecializedCollection(ExpectSlot, static thisRef => new HttpHeaderValueCollection<NameValueWithParametersHeaderValue>(
KnownHeaders
.Expect.Descriptor, thisRef));
System\Net\Http\Headers\HttpResponseHeaders.cs (14)
33
GetSpecializedCollection(AcceptRangesSlot, static thisRef => new HttpHeaderValueCollection<string>(
KnownHeaders
.AcceptRanges.Descriptor, thisRef));
37
get { return HeaderUtilities.GetTimeSpanValue(
KnownHeaders
.Age.Descriptor, this); }
38
set { SetOrRemoveParsedValue(
KnownHeaders
.Age.Descriptor, value); }
43
get { return (EntityTagHeaderValue?)GetSingleParsedValue(
KnownHeaders
.ETag.Descriptor); }
44
set { SetOrRemoveParsedValue(
KnownHeaders
.ETag.Descriptor, value); }
49
get { return (Uri?)GetSingleParsedValue(
KnownHeaders
.Location.Descriptor); }
50
set { SetOrRemoveParsedValue(
KnownHeaders
.Location.Descriptor, value); }
54
GetSpecializedCollection(ProxyAuthenticateSlot, static thisRef => new HttpHeaderValueCollection<AuthenticationHeaderValue>(
KnownHeaders
.ProxyAuthenticate.Descriptor, thisRef));
58
get { return (RetryConditionHeaderValue?)GetSingleParsedValue(
KnownHeaders
.RetryAfter.Descriptor); }
59
set { SetOrRemoveParsedValue(
KnownHeaders
.RetryAfter.Descriptor, value); }
63
GetSpecializedCollection(ServerSlot, static thisRef => new HttpHeaderValueCollection<ProductInfoHeaderValue>(
KnownHeaders
.Server.Descriptor, thisRef));
66
GetSpecializedCollection(VarySlot, static thisRef => new HttpHeaderValueCollection<string>(
KnownHeaders
.Vary.Descriptor, thisRef));
69
GetSpecializedCollection(WwwAuthenticateSlot, static thisRef => new HttpHeaderValueCollection<AuthenticationHeaderValue>(
KnownHeaders
.WWWAuthenticate.Descriptor, thisRef));
163
KnownHeader? knownHeader =
KnownHeaders
.TryGetKnownHeader(descriptor.Name);
System\Net\Http\Headers\QPackStaticTable.cs (80)
14
(new HeaderDescriptor(
KnownHeaders
.Age), "0"), // 2
15
(new HeaderDescriptor(
KnownHeaders
.ContentDisposition), ""), // 3
16
(new HeaderDescriptor(
KnownHeaders
.ContentLength), "0"), // 4
17
(new HeaderDescriptor(
KnownHeaders
.Cookie), ""), // 5
18
(new HeaderDescriptor(
KnownHeaders
.Date), ""), // 6
19
(new HeaderDescriptor(
KnownHeaders
.ETag), ""), // 7
20
(new HeaderDescriptor(
KnownHeaders
.IfModifiedSince), ""), // 8
21
(new HeaderDescriptor(
KnownHeaders
.IfNoneMatch), ""), // 9
22
(new HeaderDescriptor(
KnownHeaders
.LastModified), ""), // 10
23
(new HeaderDescriptor(
KnownHeaders
.Link), ""), // 11
24
(new HeaderDescriptor(
KnownHeaders
.Location), ""), // 12
25
(new HeaderDescriptor(
KnownHeaders
.Referer), ""), // 13
26
(new HeaderDescriptor(
KnownHeaders
.SetCookie), ""), // 14
36
(new HeaderDescriptor(
KnownHeaders
.PseudoStatus), "103"), // 24
37
(new HeaderDescriptor(
KnownHeaders
.PseudoStatus), "200"), // 25
38
(new HeaderDescriptor(
KnownHeaders
.PseudoStatus), "304"), // 26
39
(new HeaderDescriptor(
KnownHeaders
.PseudoStatus), "404"), // 27
40
(new HeaderDescriptor(
KnownHeaders
.PseudoStatus), "503"), // 28
41
(new HeaderDescriptor(
KnownHeaders
.Accept), "*/*"), // 29
42
(new HeaderDescriptor(
KnownHeaders
.Accept), "application/dns-message"), // 30
43
(new HeaderDescriptor(
KnownHeaders
.AcceptEncoding), "gzip, deflate, br"), // 31
44
(new HeaderDescriptor(
KnownHeaders
.AcceptRanges), "bytes"), // 32
45
(new HeaderDescriptor(
KnownHeaders
.AccessControlAllowHeaders), "cache-control"), // 33
46
(new HeaderDescriptor(
KnownHeaders
.AccessControlAllowHeaders), "content-type"), // 34
47
(new HeaderDescriptor(
KnownHeaders
.AccessControlAllowOrigin), "*"), // 35
48
(new HeaderDescriptor(
KnownHeaders
.CacheControl), "max-age=0"), // 36
49
(new HeaderDescriptor(
KnownHeaders
.CacheControl), "max-age=2592000"), // 37
50
(new HeaderDescriptor(
KnownHeaders
.CacheControl), "max-age=604800"), // 38
51
(new HeaderDescriptor(
KnownHeaders
.CacheControl), "no-cache"), // 39
52
(new HeaderDescriptor(
KnownHeaders
.CacheControl), "no-store"), // 40
53
(new HeaderDescriptor(
KnownHeaders
.CacheControl), "public, max-age=31536000"), // 41
54
(new HeaderDescriptor(
KnownHeaders
.ContentEncoding), "br"), // 42
55
(new HeaderDescriptor(
KnownHeaders
.ContentEncoding), "gzip"), // 43
56
(new HeaderDescriptor(
KnownHeaders
.ContentType), "application/dns-message"), // 44
57
(new HeaderDescriptor(
KnownHeaders
.ContentType), "application/javascript"), // 45
58
(new HeaderDescriptor(
KnownHeaders
.ContentType), "application/json"), // 46
59
(new HeaderDescriptor(
KnownHeaders
.ContentType), "application/x-www-form-urlencoded"), // 47
60
(new HeaderDescriptor(
KnownHeaders
.ContentType), "image/gif"), // 48
61
(new HeaderDescriptor(
KnownHeaders
.ContentType), "image/jpeg"), // 49
62
(new HeaderDescriptor(
KnownHeaders
.ContentType), "image/png"), // 50
63
(new HeaderDescriptor(
KnownHeaders
.ContentType), "text/css"), // 51
64
(new HeaderDescriptor(
KnownHeaders
.ContentType), "text/html; charset=utf-8"), // 52; Whitespace is correct, see spec.
65
(new HeaderDescriptor(
KnownHeaders
.ContentType), "text/plain"), // 53
66
(new HeaderDescriptor(
KnownHeaders
.ContentType), "text/plain;charset=utf-8"), // 54; Whitespace is correct, see spec.
67
(new HeaderDescriptor(
KnownHeaders
.Range), "bytes=0-"), // 55
68
(new HeaderDescriptor(
KnownHeaders
.StrictTransportSecurity), "max-age=31536000"), // 56
69
(new HeaderDescriptor(
KnownHeaders
.StrictTransportSecurity), "max-age=31536000; includesubdomains"), // 57
70
(new HeaderDescriptor(
KnownHeaders
.StrictTransportSecurity), "max-age=31536000; includesubdomains; preload"), // 58
71
(new HeaderDescriptor(
KnownHeaders
.Vary), "accept-encoding"), // 59
72
(new HeaderDescriptor(
KnownHeaders
.Vary), "origin"), // 60
73
(new HeaderDescriptor(
KnownHeaders
.XContentTypeOptions), "nosniff"), // 61
74
(new HeaderDescriptor(
KnownHeaders
.XXssProtection), "1; mode=block"), // 62
75
(new HeaderDescriptor(
KnownHeaders
.PseudoStatus), "100"), // 63
76
(new HeaderDescriptor(
KnownHeaders
.PseudoStatus), "204"), // 64
77
(new HeaderDescriptor(
KnownHeaders
.PseudoStatus), "206"), // 65
78
(new HeaderDescriptor(
KnownHeaders
.PseudoStatus), "302"), // 66
79
(new HeaderDescriptor(
KnownHeaders
.PseudoStatus), "400"), // 67
80
(new HeaderDescriptor(
KnownHeaders
.PseudoStatus), "403"), // 68
81
(new HeaderDescriptor(
KnownHeaders
.PseudoStatus), "421"), // 69
82
(new HeaderDescriptor(
KnownHeaders
.PseudoStatus), "425"), // 70
83
(new HeaderDescriptor(
KnownHeaders
.PseudoStatus), "500"), // 71
84
(new HeaderDescriptor(
KnownHeaders
.AcceptLanguage), ""), // 72
85
(new HeaderDescriptor(
KnownHeaders
.AccessControlAllowCredentials), "FALSE"), // 73
86
(new HeaderDescriptor(
KnownHeaders
.AccessControlAllowCredentials), "TRUE"), // 74
87
(new HeaderDescriptor(
KnownHeaders
.AccessControlAllowHeaders), "*"), // 75
88
(new HeaderDescriptor(
KnownHeaders
.AccessControlAllowMethods), "get"), // 76
89
(new HeaderDescriptor(
KnownHeaders
.AccessControlAllowMethods), "get, post, options"), // 77
90
(new HeaderDescriptor(
KnownHeaders
.AccessControlAllowMethods), "options"), // 78
91
(new HeaderDescriptor(
KnownHeaders
.AccessControlExposeHeaders), "content-length"), // 79
95
(new HeaderDescriptor(
KnownHeaders
.AltSvc), "clear"), // 83
96
(new HeaderDescriptor(
KnownHeaders
.Authorization), ""), // 84
97
(new HeaderDescriptor(
KnownHeaders
.ContentSecurityPolicy), "script-src 'none'; object-src 'none'; base-uri 'none'"), // 85
99
(new HeaderDescriptor(
KnownHeaders
.ExpectCT), ""), // 87
101
(new HeaderDescriptor(
KnownHeaders
.IfRange), ""), // 89
102
(new HeaderDescriptor(
KnownHeaders
.Origin), ""), // 90
104
(new HeaderDescriptor(
KnownHeaders
.Server), ""), // 92
106
(new HeaderDescriptor(
KnownHeaders
.UpgradeInsecureRequests), "1"), // 94
107
(new HeaderDescriptor(
KnownHeaders
.UserAgent), ""), // 95
109
(new HeaderDescriptor(
KnownHeaders
.XFrameOptions), "deny"), // 97
110
(new HeaderDescriptor(
KnownHeaders
.XFrameOptions), "sameorigin") // 98
System\Net\Http\SocketsHttpHandler\AuthenticationHelper.NtAuth.cs (1)
60
if (!response.Headers.TryGetValues(
KnownHeaders
.ProxySupport.Descriptor, out IEnumerable<string>? values))
System\Net\Http\SocketsHttpHandler\ConnectionPool\HttpConnectionPool.cs (1)
789
tunnelRequest.Headers.TryAddWithoutValidation(
KnownHeaders
.UserAgent.Descriptor, _connectTunnelUserAgent);
System\Net\Http\SocketsHttpHandler\ConnectionPool\HttpConnectionPool.Http3.cs (1)
637
if (_altSvcEnabled && response.Headers.TryGetValues(
KnownHeaders
.AltSvc.Descriptor, out IEnumerable<string>? altSvcHeaderValues))
System\Net\Http\SocketsHttpHandler\CookieHelper.cs (1)
14
if (response.Headers.TryGetValues(
KnownHeaders
.SetCookie.Descriptor, out IEnumerable<string>? values))
System\Net\Http\SocketsHttpHandler\Http2Connection.cs (9)
1436
if (knownHeader !=
KnownHeaders
.Host && knownHeader !=
KnownHeaders
.Connection && knownHeader !=
KnownHeaders
.Upgrade && knownHeader !=
KnownHeaders
.ProxyConnection)
1442
if (knownHeader ==
KnownHeaders
.TE)
1460
if (knownHeader ==
KnownHeaders
.ContentLength && request.IsExtendedConnectRequest)
1538
WriteBytes(
KnownHeaders
.Cookie.Http2EncodedName, ref headerBuffer);
1539
Encoding? cookieEncoding = _pool.Settings._requestHeaderEncodingSelector?.Invoke(
KnownHeaders
.Cookie.Name, request);
1551
WriteBytes(
KnownHeaders
.ContentLength.Http2EncodedName, ref headerBuffer);
System\Net\Http\SocketsHttpHandler\Http2Stream.cs (47)
504
(
KnownHeaders
.AcceptCharset.Descriptor, Array.Empty<byte>()),
505
(
KnownHeaders
.AcceptEncoding.Descriptor, "gzip, deflate"u8.ToArray()),
506
(
KnownHeaders
.AcceptLanguage.Descriptor, Array.Empty<byte>()),
507
(
KnownHeaders
.AcceptRanges.Descriptor, Array.Empty<byte>()),
508
(
KnownHeaders
.Accept.Descriptor, Array.Empty<byte>()),
509
(
KnownHeaders
.AccessControlAllowOrigin.Descriptor, Array.Empty<byte>()),
510
(
KnownHeaders
.Age.Descriptor, Array.Empty<byte>()),
511
(
KnownHeaders
.Allow.Descriptor, Array.Empty<byte>()),
512
(
KnownHeaders
.Authorization.Descriptor, Array.Empty<byte>()),
513
(
KnownHeaders
.CacheControl.Descriptor, Array.Empty<byte>()),
514
(
KnownHeaders
.ContentDisposition.Descriptor, Array.Empty<byte>()),
515
(
KnownHeaders
.ContentEncoding.Descriptor, Array.Empty<byte>()),
516
(
KnownHeaders
.ContentLanguage.Descriptor, Array.Empty<byte>()),
517
(
KnownHeaders
.ContentLength.Descriptor, Array.Empty<byte>()),
518
(
KnownHeaders
.ContentLocation.Descriptor, Array.Empty<byte>()),
519
(
KnownHeaders
.ContentRange.Descriptor, Array.Empty<byte>()),
520
(
KnownHeaders
.ContentType.Descriptor, Array.Empty<byte>()),
521
(
KnownHeaders
.Cookie.Descriptor, Array.Empty<byte>()),
522
(
KnownHeaders
.Date.Descriptor, Array.Empty<byte>()),
523
(
KnownHeaders
.ETag.Descriptor, Array.Empty<byte>()),
524
(
KnownHeaders
.Expect.Descriptor, Array.Empty<byte>()),
525
(
KnownHeaders
.Expires.Descriptor, Array.Empty<byte>()),
526
(
KnownHeaders
.From.Descriptor, Array.Empty<byte>()),
527
(
KnownHeaders
.Host.Descriptor, Array.Empty<byte>()),
528
(
KnownHeaders
.IfMatch.Descriptor, Array.Empty<byte>()),
529
(
KnownHeaders
.IfModifiedSince.Descriptor, Array.Empty<byte>()),
530
(
KnownHeaders
.IfNoneMatch.Descriptor, Array.Empty<byte>()),
531
(
KnownHeaders
.IfRange.Descriptor, Array.Empty<byte>()),
532
(
KnownHeaders
.IfUnmodifiedSince.Descriptor, Array.Empty<byte>()),
533
(
KnownHeaders
.LastModified.Descriptor, Array.Empty<byte>()),
534
(
KnownHeaders
.Link.Descriptor, Array.Empty<byte>()),
535
(
KnownHeaders
.Location.Descriptor, Array.Empty<byte>()),
536
(
KnownHeaders
.MaxForwards.Descriptor, Array.Empty<byte>()),
537
(
KnownHeaders
.ProxyAuthenticate.Descriptor, Array.Empty<byte>()),
538
(
KnownHeaders
.ProxyAuthorization.Descriptor, Array.Empty<byte>()),
539
(
KnownHeaders
.Range.Descriptor, Array.Empty<byte>()),
540
(
KnownHeaders
.Referer.Descriptor, Array.Empty<byte>()),
541
(
KnownHeaders
.Refresh.Descriptor, Array.Empty<byte>()),
542
(
KnownHeaders
.RetryAfter.Descriptor, Array.Empty<byte>()),
543
(
KnownHeaders
.Server.Descriptor, Array.Empty<byte>()),
544
(
KnownHeaders
.SetCookie.Descriptor, Array.Empty<byte>()),
545
(
KnownHeaders
.StrictTransportSecurity.Descriptor, Array.Empty<byte>()),
546
(
KnownHeaders
.TransferEncoding.Descriptor, Array.Empty<byte>()),
547
(
KnownHeaders
.UserAgent.Descriptor, Array.Empty<byte>()),
548
(
KnownHeaders
.Vary.Descriptor, Array.Empty<byte>()),
549
(
KnownHeaders
.Via.Descriptor, Array.Empty<byte>()),
550
(
KnownHeaders
.WWWAuthenticate.Descriptor, Array.Empty<byte>()),
System\Net\Http\SocketsHttpHandler\Http3Connection.cs (1)
80
_altUsedEncodedHeader = QPack.QPackEncoder.EncodeLiteralHeaderFieldWithoutNameReferenceToArray(
KnownHeaders
.AltUsed.Name, altUsedValue);
System\Net\Http\SocketsHttpHandler\Http3RequestStream.cs (6)
734
if (knownHeader !=
KnownHeaders
.Host && knownHeader !=
KnownHeaders
.Connection && knownHeader !=
KnownHeaders
.Upgrade && knownHeader !=
KnownHeaders
.ProxyConnection)
740
if (knownHeader ==
KnownHeaders
.TE)
989
if (!descriptor.Equals(
KnownHeaders
.PseudoStatus))
System\Net\Http\SocketsHttpHandler\HttpConnection.cs (4)
357
WriteBytes(
KnownHeaders
.Host.AsciiBytesWithColonSpace);
443
if (cookiesFromContainer is not null && header.Key.Equals(
KnownHeaders
.Cookie))
467
WriteBytes(
KnownHeaders
.Cookie.AsciiBytesWithColonSpace);
1311
if (descriptor.Equals(
KnownHeaders
.KeepAlive))
System\Net\Http\SocketsHttpHandler\HttpConnectionBase.cs (2)
129
descriptor.Equals(
KnownHeaders
.Date) ? GetOrAddCachedValue(ref _lastDateHeaderValue, descriptor, value, valueEncoding) :
130
descriptor.Equals(
KnownHeaders
.Server) ? GetOrAddCachedValue(ref _lastServerHeaderValue, descriptor, value, valueEncoding) :
System\Net\Http\StringContent.cs (1)
68
Headers.TryAddWithoutValidation(
KnownHeaders
.ContentType.Descriptor, knownValue);