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); } }
public void OnStaticIndexedHeader(int index, ReadOnlySpan <byte> value) { var knownHeader = H3StaticTable.GetHeaderFieldAt(index); OnHeader(knownHeader.Name, value); }
public void OnStaticIndexedHeader(int index) { var knownHeader = H3StaticTable.GetHeaderFieldAt(index); OnHeader(knownHeader.Name, knownHeader.Value); }
public void OnStaticIndexedHeader(int index, ReadOnlySpan <byte> value) { _headerHandler.DecodedHeaders[((Span <byte>)H3StaticTable.GetHeaderFieldAt(index).Name).GetAsciiStringNonNullCharacters()] = value.GetAsciiOrUTF8StringNonNullCharacters(); }
public void OnStaticIndexedHeader(int index) { var knownHeader = H3StaticTable.GetHeaderFieldAt(index); _headerHandler.DecodedHeaders[((Span <byte>)knownHeader.Name).GetAsciiStringNonNullCharacters()] = HttpUtilities.GetAsciiOrUTF8StringNonNullCharacters((ReadOnlySpan <byte>)knownHeader.Value); }