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