13 references to H2StaticTable
Microsoft.AspNetCore.Shared.Tests (13)
runtime\Http2\HPackDecoderTest.cs (6)
125
Assert.Equal(":method", _handler.DecodedStaticHeaders[
H2StaticTable
.MethodGet].Key);
126
Assert.Equal("GET", _handler.DecodedStaticHeaders[
H2StaticTable
.MethodGet].Value);
139
Assert.Equal(_userAgentString, _handler.DecodedStaticHeaders[
H2StaticTable
.UserAgent].Key);
140
Assert.Equal(_headerValueString, _handler.DecodedStaticHeaders[
H2StaticTable
.UserAgent].Value);
975
ref readonly HeaderField entry = ref
H2StaticTable
.Get(index - 1);
982
byte[] name =
H2StaticTable
.Get(index - 1).Name;
src\Shared\Hpack\DynamicHPackEncoder.cs (1)
207
return index == -1 ? -1 : index - Head.Before!.Index + 1 +
H2StaticTable
.Count;
src\Shared\runtime\Http2\Hpack\HPackDecoder.cs (4)
511
_dynamicTable.Insert(_headerStaticIndex,
H2StaticTable
.Get(_headerStaticIndex - 1).Name, headerValueSpan);
544
if (index <=
H2StaticTable
.Count)
559
if (index <=
H2StaticTable
.Count)
657
return ref _dynamicTable[index -
H2StaticTable
.Count - 1];
src\Shared\runtime\Http2\Hpack\HPackEncoder.cs (2)
48
if (
H2StaticTable
.TryGetStatusIndex(statusCode, out var index))
57
if (!EncodeLiteralHeaderFieldWithoutIndexing(
H2StaticTable
.Status200, destination, out var nameLength))