138 references to Descriptor
System.Net.Http (138)
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 (13)
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));
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\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\StringContent.cs (1)
68
Headers.TryAddWithoutValidation(KnownHeaders.ContentType.
Descriptor
, knownValue);