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)); 702AddEntryToStore(new HeaderEntry(descriptor, result)); 838AddEntryToStore(new HeaderEntry(descriptor, info)); 1393entries[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()) 339HeaderEntry[]? entries = GetEntriesArray(); 344HeaderEntry entry = entries[i]; 562if (_count == 0 && sourceHeaders._headerStore is HeaderEntry[] sourceEntries) 566if (_headerStore is not HeaderEntry[] entries || entries.Length < _count) 568entries = new HeaderEntry[sourceEntries.Length]; 574HeaderEntry entry = sourceEntries[i]; 584foreach (HeaderEntry entry in sourceHeaders.GetEntries()) 1370internal HeaderEntry[]? GetEntriesArray() 1377else if (store is HeaderEntry[] entries) 1386HeaderEntry[] GetEntriesFromDictionary() 1389var entries = new HeaderEntry[dictionary.Count]; 1403internal ReadOnlySpan<HeaderEntry> GetEntries() 1405return new ReadOnlySpan<HeaderEntry>(GetEntriesArray(), 0, _count); 1410private bool EntriesAreLiveView => _headerStore is HeaderEntry[]; 1417if (store is HeaderEntry[] entries) 1439if (store is HeaderEntry[] entries) 1462entries = new HeaderEntry[InitialCapacity]; 1464ref HeaderEntry firstEntry = ref MemoryMarshal.GetArrayDataReference(entries); 1475var entries = (HeaderEntry[])_headerStore!; 1484ref HeaderEntry firstNewEntry = ref entries[entries.Length >> 1]; 1492var entries = (HeaderEntry[])_headerStore!; 1495foreach (HeaderEntry entry in entries) 1515private void AddEntryToStore(HeaderEntry entry) 1519if (_headerStore is HeaderEntry[] entries) 1540if (_headerStore is HeaderEntry[] entries) 1556if (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)
1428ReadOnlySpan<HeaderEntry> entries = headers.GetEntries(); 1431foreach (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())