5 writes to Key
System.Net.Http (5)
System\Net\Http\Headers\HttpHeaders.cs (5)
26
Key
= key;
1396
Key
= entry.Key,
1454
entries[count].
Key
= key;
1466
firstEntry.
Key
= key;
1486
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
);
363
ParseRawHeaderValues(entry.
Key
, info);
365
string[] values = GetStoreValuesAsStringArray(entry.
Key
, info);
366
yield return new KeyValuePair<string, IEnumerable<string>>(entry.
Key
.Name, values);
578
entry.Value = CloneHeaderInfo(entry.
Key
, info);
587
ref object? storeValueRef = ref GetValueRefOrAddDefault(entry.
Key
);
593
storeValueRef = CloneHeaderInfo(entry.
Key
, info);
1422
if (key.Equals(entries[i].
Key
))
1444
if (key.Equals(entries[i].
Key
))
1498
dictionary.Add(entry.
Key
, entry.Value);
1518
Debug.Assert(!Contains(entry.
Key
));
1531
GetValueRefOrAddDefault(entry.
Key
) = entry.Value;
1561
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;