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