5 writes to Key
System.Net.Http (5)
System\Net\Http\Headers\HttpHeaders.cs (5)
26Key = key; 1395Key = entry.Key, 1453entries[count].Key = key; 1465firstEntry.Key = key; 1485firstNewEntry.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); 362ParseRawHeaderValues(entry.Key, info); 364string[] values = GetStoreValuesAsStringArray(entry.Key, info); 365yield return new KeyValuePair<string, IEnumerable<string>>(entry.Key.Name, values); 577entry.Value = CloneHeaderInfo(entry.Key, info); 586ref object? storeValueRef = ref GetValueRefOrAddDefault(entry.Key); 592storeValueRef = CloneHeaderInfo(entry.Key, info); 1421if (key.Equals(entries[i].Key)) 1443if (key.Equals(entries[i].Key)) 1497dictionary.Add(entry.Key, entry.Value); 1517Debug.Assert(!Contains(entry.Key)); 1530GetValueRefOrAddDefault(entry.Key) = entry.Value; 1560if (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;