2 instantiations of HeaderField
Microsoft.AspNetCore.Server.Kestrel.Core (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
(
19 references to HeaderField
InMemory.FunctionalTests (2)
Http2\Http2ConnectionTests.cs (1)
2448
ref readonly
var
entry = ref H2StaticTable.Get(index - 1);
Http2\Http2TestBase.cs (1)
448
ref readonly
var
entry = ref H2StaticTable.Get(index - 1);
Microsoft.AspNetCore.Server.Kestrel.Core (17)
Internal\Http2\Http2Connection.cs (1)
1550
ref readonly
var
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)