5 instantiations of HeaderEntry
System.Net.Http (5)
System\Net\Http\Headers\HttpHeaders.cs (5)
93AddEntryToStore(new HeaderEntry(descriptor, info)); 125AddEntryToStore(new HeaderEntry(descriptor, info)); 703AddEntryToStore(new HeaderEntry(descriptor, result)); 839AddEntryToStore(new HeaderEntry(descriptor, info)); 1394entries[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&lt;<see cref="HeaderDescriptor"/>, <see cref="object"/>&gt; </summary> 276foreach (HeaderEntry entry in GetEntries()) 337HeaderEntry[]? entries = GetEntriesArray(); 342HeaderEntry entry = entries[i]; 563if (_count == 0 && sourceHeaders._headerStore is HeaderEntry[] sourceEntries) 567if (_headerStore is not HeaderEntry[] entries || entries.Length < _count) 569entries = new HeaderEntry[sourceEntries.Length]; 575HeaderEntry entry = sourceEntries[i]; 585foreach (HeaderEntry entry in sourceHeaders.GetEntries()) 1371internal HeaderEntry[]? GetEntriesArray() 1378else if (store is HeaderEntry[] entries) 1387HeaderEntry[] GetEntriesFromDictionary() 1390var entries = new HeaderEntry[dictionary.Count]; 1404internal ReadOnlySpan<HeaderEntry> GetEntries() 1406return new ReadOnlySpan<HeaderEntry>(GetEntriesArray(), 0, _count); 1411private bool EntriesAreLiveView => _headerStore is HeaderEntry[]; 1418if (store is HeaderEntry[] entries) 1440if (store is HeaderEntry[] entries) 1463entries = new HeaderEntry[InitialCapacity]; 1465ref HeaderEntry firstEntry = ref MemoryMarshal.GetArrayDataReference(entries); 1476var entries = (HeaderEntry[])_headerStore!; 1485ref HeaderEntry firstNewEntry = ref entries[entries.Length >> 1]; 1493var entries = (HeaderEntry[])_headerStore!; 1496foreach (HeaderEntry entry in entries) 1516private void AddEntryToStore(HeaderEntry entry) 1520if (_headerStore is HeaderEntry[] entries) 1541if (_headerStore is HeaderEntry[] entries) 1557if (store is HeaderEntry[] entries)
System\Net\Http\Headers\HttpHeadersNonValidated.cs (5)
86_headers is HttpHeaders headers && headers.GetEntriesArray() is HeaderEntry[] entries ? 123private readonly HeaderEntry[] _entries; 128internal Enumerator(HeaderEntry[] entries, int numberOfEntries) 140if (_entries is HeaderEntry[] entries && index < _numberOfEntries && (uint)index < (uint)entries.Length) 142HeaderEntry entry = entries[index];
System\Net\Http\SocketsHttpHandler\Http2Connection.cs (2)
1419ReadOnlySpan<HeaderEntry> entries = headers.GetEntries(); 1422foreach (HeaderEntry header in entries)
System\Net\Http\SocketsHttpHandler\Http3RequestStream.cs (2)
717ReadOnlySpan<HeaderEntry> entries = headers.GetEntries(); 720foreach (HeaderEntry header in entries)
System\Net\Http\SocketsHttpHandler\HttpConnection.cs (1)
424foreach (HeaderEntry header in headers.GetEntries())