Beispiel #1
0
 private System.Net.Http.QPack.HeaderField GetHeader(int index)
 {
     try
     {
         return(_s ? H3StaticTable.Get(index) : _dynamicTable[index]);
     }
     catch (IndexOutOfRangeException ex)
     {
         throw new QPackDecodingException("" /*CoreStrings.FormatQPackErrorIndexOutOfRange(index)*/, ex);
     }
 }
Beispiel #2
0
    public void OnStaticIndexedHeader(int index, ReadOnlySpan <byte> value)
    {
        var knownHeader = H3StaticTable.Get(index);

        OnHeader(knownHeader.Name, value);
    }
Beispiel #3
0
    public void OnStaticIndexedHeader(int index)
    {
        var knownHeader = H3StaticTable.Get(index);

        OnHeader(knownHeader.Name, knownHeader.Value);
    }