4 instantiations of HeaderField
Microsoft.AspNetCore.Shared.Tests (4)
runtime\Http2\DynamicTableTest.cs (2)
16private readonly HeaderField _header1 = new HeaderField(staticTableIndex: null, Encoding.ASCII.GetBytes("header-1"), Encoding.ASCII.GetBytes("value1")); 17private readonly HeaderField _header2 = new HeaderField(staticTableIndex: null, Encoding.ASCII.GetBytes("header-02"), Encoding.ASCII.GetBytes("value_2"));
src\Shared\runtime\Http2\Hpack\DynamicTable.cs (1)
70var entry = new HeaderField(staticTableIndex, name, value);
src\Shared\runtime\Http2\Hpack\H2StaticTable.Http2.cs (1)
100new HeaderField(
27 references to HeaderField
Microsoft.AspNetCore.Shared.Tests (27)
runtime\Http2\DynamicTableTest.cs (10)
16private readonly HeaderField _header1 = new HeaderField(staticTableIndex: null, Encoding.ASCII.GetBytes("header-1"), Encoding.ASCII.GetBytes("value1")); 17private readonly HeaderField _header2 = new HeaderField(staticTableIndex: null, Encoding.ASCII.GetBytes("header-02"), Encoding.ASCII.GetBytes("value_2")); 136HeaderField dynamicField = table[i]; 149Debug.Assert((insertSize % 64) == 0, $"{nameof(insertSize)} must be a multiple of 64 ({nameof(HeaderField)}.{nameof(HeaderField.RfcOverhead)} * 2)"); 160insertedSize += data.Length * 2 + HeaderField.RfcOverhead; 163List<HeaderField> headers = new List<HeaderField>(); 237private void VerifyTableEntries(DynamicTable dynamicTable, params HeaderField[] entries) 244HeaderField headerField = dynamicTable[i];
runtime\Http2\HPackDecoderTest.cs (1)
975ref readonly HeaderField entry = ref H2StaticTable.Get(index - 1);
src\Shared\Hpack\DynamicHPackEncoder.cs (1)
93var headerLength = HeaderField.GetLength(name.Length, valueEncoding?.GetByteCount(value) ?? value.Length);
src\Shared\runtime\Http2\Hpack\DynamicTable.cs (9)
8private HeaderField[] _buffer; 17_buffer = new HeaderField[maxSize / HeaderField.RfcOverhead]; 27public ref readonly HeaderField this[int index] 58int entryLength = HeaderField.GetLength(name.Length, value.Length); 70var entry = new HeaderField(staticTableIndex, name, value); 81var newBuffer = new HeaderField[maxSize / HeaderField.RfcOverhead]; 105ref HeaderField field = ref _buffer[_removeIndex];
src\Shared\runtime\Http2\Hpack\H2StaticTable.Http2.cs (4)
12public static ref readonly HeaderField Get(int index) => ref s_staticDecoderTable[index]; 31private static readonly HeaderField[] s_staticDecoderTable = new HeaderField[] 99private static HeaderField CreateHeaderField(int staticTableIndex, string name, string value) =>
src\Shared\runtime\Http2\Hpack\HPackDecoder.cs (2)
550ref readonly HeaderField header = ref GetDynamicHeader(index); 653private ref readonly HeaderField GetDynamicHeader(int index)