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