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

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

            OnHeader(knownHeader.Name, knownHeader.Value);
        }
示例#4
0
 public void OnStaticIndexedHeader(int index, ReadOnlySpan <byte> value)
 {
     _headerHandler.DecodedHeaders[((Span <byte>)H3StaticTable.GetHeaderFieldAt(index).Name).GetAsciiStringNonNullCharacters()] = value.GetAsciiOrUTF8StringNonNullCharacters();
 }
示例#5
0
        public void OnStaticIndexedHeader(int index)
        {
            var knownHeader = H3StaticTable.GetHeaderFieldAt(index);

            _headerHandler.DecodedHeaders[((Span <byte>)knownHeader.Name).GetAsciiStringNonNullCharacters()] = HttpUtilities.GetAsciiOrUTF8StringNonNullCharacters((ReadOnlySpan <byte>)knownHeader.Value);
        }