1 write to MaybeUnknown
Microsoft.AspNetCore.Server.Kestrel.Core (1)
Internal\Http\HttpHeaders.cs (1)
26
protected Dictionary<string, StringValues> Unknown =>
MaybeUnknown
??= new Dictionary<string, StringValues>(StringComparer.OrdinalIgnoreCase);
18 references to MaybeUnknown
Microsoft.AspNetCore.Server.Kestrel.Core (18)
Internal\Http\HttpHeaders.cs (2)
155
protected bool TryGetUnknown(string key, ref StringValues value) =>
MaybeUnknown
?.TryGetValue(key, out value) ?? false;
158
protected bool RemoveUnknown(string key) =>
MaybeUnknown
?.Remove(key) ?? false;
Internal\Http\HttpHeaders.Generated.cs (8)
2586
return (_contentLength.HasValue ? 1 : 0 ) + BitOperations.PopCount((ulong)_bits) + (
MaybeUnknown
?.Count ?? 0);
7472
((ICollection<KeyValuePair<string, StringValues>>?)
MaybeUnknown
)?.CopyTo(array, arrayIndex);
10872
return (_contentLength.HasValue ? 1 : 0 ) + BitOperations.PopCount((ulong)_bits) + (
MaybeUnknown
?.Count ?? 0);
14049
MaybeUnknown
?.Clear();
14799
((ICollection<KeyValuePair<string, StringValues>>?)
MaybeUnknown
)?.CopyTo(array, arrayIndex);
17169
return (_contentLength.HasValue ? 1 : 0 ) + BitOperations.PopCount((ulong)_bits) + (
MaybeUnknown
?.Count ?? 0);
17482
MaybeUnknown
?.Clear();
17567
((ICollection<KeyValuePair<string, StringValues>>?)
MaybeUnknown
)?.CopyTo(array, arrayIndex);
Internal\Http\HttpRequestHeaders.cs (3)
79
MaybeUnknown
?.Clear();
248
_hasUnknown = collection.
MaybeUnknown
!= null;
250
? collection.
MaybeUnknown
!.GetEnumerator()
Internal\Http\HttpResponseHeaders.cs (3)
42
var extraHeaders =
MaybeUnknown
;
157
_hasUnknown = collection.
MaybeUnknown
!= null;
159
? collection.
MaybeUnknown
!.GetEnumerator()
Internal\Http\HttpResponseTrailers.cs (2)
66
_hasUnknown = collection.
MaybeUnknown
!= null;
68
? collection.
MaybeUnknown
!.GetEnumerator()