44 references to H2StaticTable
Microsoft.AspNetCore.Server.Kestrel.Core (44)
Internal\Http2\Http2Connection.cs (4)
1548Debug.Assert(index <= H2StaticTable.Count); 1550ref readonly var entry = ref H2StaticTable.Get(index - 1); 1556Debug.Assert(index <= H2StaticTable.Count); 1558OnHeaderCore(HeaderType.StaticAndValue, index, H2StaticTable.Get(index - 1).Name, value);
Internal\Http2\Http2Stream.cs (4)
699case H2StaticTable.MethodGet: 704case H2StaticTable.MethodPost: 709case H2StaticTable.SchemeHttp: 712case H2StaticTable.SchemeHttps:
src\Servers\Kestrel\shared\HPackHeaderWriter.cs (5)
105if (H2StaticTable.TryGetStatusIndex(statusCode, out var index)) 114return hpackEncoder.EncodeHeader(buffer, H2StaticTable.Status200, HeaderEncodingHint.Index, name, value, valueEncoding: null, out length); 183case H2StaticTable.SetCookie: 184case H2StaticTable.ContentDisposition: 199return staticTableIndex == H2StaticTable.ContentLength;
src\Servers\Kestrel\shared\Http2HeadersEnumerator.cs (24)
195return H2StaticTable.CacheControl; 197return H2StaticTable.Date; 199return H2StaticTable.TransferEncoding; 201return H2StaticTable.Via; 203return H2StaticTable.Allow; 205return H2StaticTable.ContentType; 207return H2StaticTable.ContentEncoding; 209return H2StaticTable.ContentLanguage; 211return H2StaticTable.ContentLocation; 213return H2StaticTable.ContentRange; 215return H2StaticTable.Expires; 217return H2StaticTable.LastModified; 219return H2StaticTable.AcceptRanges; 221return H2StaticTable.Age; 223return H2StaticTable.ETag; 225return H2StaticTable.Location; 227return H2StaticTable.ProxyAuthenticate; 229return H2StaticTable.RetryAfter; 231return H2StaticTable.Server; 233return H2StaticTable.SetCookie; 235return H2StaticTable.Vary; 237return H2StaticTable.WwwAuthenticate; 239return H2StaticTable.AccessControlAllowOrigin; 241return H2StaticTable.ContentLength;
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))