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