5 instantiations of HeaderEntry
System.Net.Http (5)
System\Net\Http\Headers\HttpHeaders.cs (5)
93
AddEntryToStore(new
HeaderEntry
(descriptor, info));
125
AddEntryToStore(new
HeaderEntry
(descriptor, info));
702
AddEntryToStore(new
HeaderEntry
(descriptor, result));
838
AddEntryToStore(new
HeaderEntry
(descriptor, info));
1393
entries[i++] = new
HeaderEntry
38 references to HeaderEntry
System.Net.Http (38)
System\Net\Http\Headers\HttpHeaders.cs (28)
53
/// <summary>Either a <see cref="
HeaderEntry
"/> array or a Dictionary<<see cref="HeaderDescriptor"/>, <see cref="object"/>> </summary>
276
foreach (
HeaderEntry
entry in GetEntries())
339
HeaderEntry
[]? entries = GetEntriesArray();
344
HeaderEntry
entry = entries[i];
562
if (_count == 0 && sourceHeaders._headerStore is
HeaderEntry
[] sourceEntries)
566
if (_headerStore is not
HeaderEntry
[] entries || entries.Length < _count)
568
entries = new
HeaderEntry
[sourceEntries.Length];
574
HeaderEntry
entry = sourceEntries[i];
584
foreach (
HeaderEntry
entry in sourceHeaders.GetEntries())
1370
internal
HeaderEntry
[]? GetEntriesArray()
1377
else if (store is
HeaderEntry
[] entries)
1386
HeaderEntry
[] GetEntriesFromDictionary()
1389
var entries = new
HeaderEntry
[dictionary.Count];
1403
internal ReadOnlySpan<
HeaderEntry
> GetEntries()
1405
return new ReadOnlySpan<
HeaderEntry
>(GetEntriesArray(), 0, _count);
1410
private bool EntriesAreLiveView => _headerStore is
HeaderEntry
[];
1417
if (store is
HeaderEntry
[] entries)
1439
if (store is
HeaderEntry
[] entries)
1462
entries = new
HeaderEntry
[InitialCapacity];
1464
ref
HeaderEntry
firstEntry = ref MemoryMarshal.GetArrayDataReference(entries);
1475
var entries = (
HeaderEntry
[])_headerStore!;
1484
ref
HeaderEntry
firstNewEntry = ref entries[entries.Length >> 1];
1492
var entries = (
HeaderEntry
[])_headerStore!;
1495
foreach (
HeaderEntry
entry in entries)
1515
private void AddEntryToStore(
HeaderEntry
entry)
1519
if (_headerStore is
HeaderEntry
[] entries)
1540
if (_headerStore is
HeaderEntry
[] entries)
1556
if (store is
HeaderEntry
[] entries)
System\Net\Http\Headers\HttpHeadersNonValidated.cs (5)
86
_headers is HttpHeaders headers && headers.GetEntriesArray() is
HeaderEntry
[] entries ?
123
private readonly
HeaderEntry
[] _entries;
128
internal Enumerator(
HeaderEntry
[] entries, int numberOfEntries)
140
if (_entries is
HeaderEntry
[] entries && index < _numberOfEntries && (uint)index < (uint)entries.Length)
142
HeaderEntry
entry = entries[index];
System\Net\Http\SocketsHttpHandler\Http2Connection.cs (2)
1428
ReadOnlySpan<
HeaderEntry
> entries = headers.GetEntries();
1431
foreach (
HeaderEntry
header in entries)
System\Net\Http\SocketsHttpHandler\Http3RequestStream.cs (2)
717
ReadOnlySpan<
HeaderEntry
> entries = headers.GetEntries();
720
foreach (
HeaderEntry
header in entries)
System\Net\Http\SocketsHttpHandler\HttpConnection.cs (1)
424
foreach (
HeaderEntry
header in headers.GetEntries())