5 writes to Key
System.Net.Http (5)
System\Net\Http\Headers\HttpHeaders.cs (5)
26
Key
= key;
1395
Key
= entry.Key,
1453
entries[count].
Key
= key;
1465
firstEntry.
Key
= key;
1485
firstNewEntry.
Key
= key;
36 references to Key
System.Net.Http (36)
System\Net\Http\Headers\HttpHeaders.cs (16)
278
vsb.Append(entry.
Key
.Name);
281
GetStoreValuesAsStringOrStringArray(entry.
Key
, entry.Value, out string? singleValue, out string[]? multiValue);
292
string separator = entry.
Key
.Separator;
354
: ref CollectionsMarshal.GetValueRefOrNullRef((Dictionary<HeaderDescriptor, object>)_headerStore, entry.
Key
);
362
ParseRawHeaderValues(entry.
Key
, info);
364
string[] values = GetStoreValuesAsStringArray(entry.
Key
, info);
365
yield return new KeyValuePair<string, IEnumerable<string>>(entry.
Key
.Name, values);
577
entry.Value = CloneHeaderInfo(entry.
Key
, info);
586
ref object? storeValueRef = ref GetValueRefOrAddDefault(entry.
Key
);
592
storeValueRef = CloneHeaderInfo(entry.
Key
, info);
1421
if (key.Equals(entries[i].
Key
))
1443
if (key.Equals(entries[i].
Key
))
1497
dictionary.Add(entry.
Key
, entry.Value);
1517
Debug.Assert(!Contains(entry.
Key
));
1530
GetValueRefOrAddDefault(entry.
Key
) = entry.Value;
1560
if (key.Equals(entries[i].
Key
))
System\Net\Http\Headers\HttpHeadersNonValidated.cs (4)
145
HttpHeaders.GetStoreValuesAsStringOrStringArray(entry.
Key
, entry.Value, out string? singleValue, out string[]? multiValue);
149
entry.
Key
.Name,
150
singleValue is not null ? new HeaderStringValues(entry.
Key
, singleValue) : new HeaderStringValues(entry.
Key
, multiValue!));
System\Net\Http\SocketsHttpHandler\Http2Connection.cs (5)
1424
int headerValuesCount = HttpHeaders.GetStoreValuesIntoStringArray(header.
Key
, header.Value, ref tmpHeaderValuesArray);
1428
Encoding? valueEncoding = encodingSelector?.Invoke(header.
Key
.Name, request);
1430
KnownHeader? knownHeader = header.
Key
.KnownHeader;
1468
byte[]? separator = headerValues.Length > 1 ? header.
Key
.SeparatorBytes : null;
1476
WriteLiteralHeader(header.
Key
.Name, headerValues, valueEncoding, ref headerBuffer);
System\Net\Http\SocketsHttpHandler\Http3RequestStream.cs (5)
722
int headerValuesCount = HttpHeaders.GetStoreValuesIntoStringArray(header.
Key
, header.Value, ref _headerValues);
726
Encoding? valueEncoding = encodingSelector?.Invoke(header.
Key
.Name, _request);
728
KnownHeader? knownHeader = header.
Key
.KnownHeader;
758
byte[]? separator = headerValues.Length > 1 ? header.
Key
.SeparatorBytes : null;
766
BufferLiteralHeaderWithoutNameReference(header.
Key
.Name, headerValues, HttpHeaderParser.DefaultSeparatorBytes, valueEncoding);
System\Net\Http\SocketsHttpHandler\HttpConnection.cs (6)
426
if (header.
Key
.KnownHeader is KnownHeader knownHeader)
432
WriteAsciiString(header.
Key
.Name);
436
int headerValuesCount = HttpHeaders.GetStoreValuesIntoStringArray(header.
Key
, header.Value, ref headerValues);
439
Encoding? valueEncoding = encodingSelector?.Invoke(header.
Key
.Name, _currentRequest);
443
if (cookiesFromContainer is not null && header.
Key
.Equals(KnownHeaders.Cookie))
453
byte[] separator = header.
Key
.SeparatorBytes;