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));
703
AddEntryToStore(new
HeaderEntry
(descriptor, result));
839
AddEntryToStore(new
HeaderEntry
(descriptor, info));
1394
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())
337
HeaderEntry
[]? entries = GetEntriesArray();
342
HeaderEntry
entry = entries[i];
563
if (_count == 0 && sourceHeaders._headerStore is
HeaderEntry
[] sourceEntries)
567
if (_headerStore is not
HeaderEntry
[] entries || entries.Length < _count)
569
entries = new
HeaderEntry
[sourceEntries.Length];
575
HeaderEntry
entry = sourceEntries[i];
585
foreach (
HeaderEntry
entry in sourceHeaders.GetEntries())
1371
internal
HeaderEntry
[]? GetEntriesArray()
1378
else if (store is
HeaderEntry
[] entries)
1387
HeaderEntry
[] GetEntriesFromDictionary()
1390
var entries = new
HeaderEntry
[dictionary.Count];
1404
internal ReadOnlySpan<
HeaderEntry
> GetEntries()
1406
return new ReadOnlySpan<
HeaderEntry
>(GetEntriesArray(), 0, _count);
1411
private bool EntriesAreLiveView => _headerStore is
HeaderEntry
[];
1418
if (store is
HeaderEntry
[] entries)
1440
if (store is
HeaderEntry
[] entries)
1463
entries = new
HeaderEntry
[InitialCapacity];
1465
ref
HeaderEntry
firstEntry = ref MemoryMarshal.GetArrayDataReference(entries);
1476
var entries = (
HeaderEntry
[])_headerStore!;
1485
ref
HeaderEntry
firstNewEntry = ref entries[entries.Length >> 1];
1493
var entries = (
HeaderEntry
[])_headerStore!;
1496
foreach (
HeaderEntry
entry in entries)
1516
private void AddEntryToStore(
HeaderEntry
entry)
1520
if (_headerStore is
HeaderEntry
[] entries)
1541
if (_headerStore is
HeaderEntry
[] entries)
1557
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)
1419
ReadOnlySpan<
HeaderEntry
> entries = headers.GetEntries();
1422
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())