11 instantiations of HPackDecodingException
Microsoft.AspNetCore.Shared.Tests (11)
src\Shared\runtime\Http2\Hpack\HPackDecoder.cs (8)
292throw new HPackDecodingException(SR.Format(SR.net_http_invalid_header_name, "")); 372throw new HPackDecodingException(SR.net_http_hpack_late_dynamic_table_size_update); 492throw new HPackDecodingException(SR.net_http_hpack_incomplete_header_block); 538throw new HPackDecodingException(SR.net_http_hpack_unexpected_end); 577throw new HPackDecodingException(SR.Format(SR.net_http_headers_exceeded_length, _maxHeadersLength)); 618throw new HPackDecodingException(SR.net_http_hpack_huffman_decode_failed, ex); 662throw new HPackDecodingException(SR.Format(SR.net_http_hpack_invalid_index, index)); 670throw new HPackDecodingException(SR.Format(SR.net_http_hpack_large_table_size_update, size, _maxDynamicTableSize));
src\Shared\runtime\Http2\Hpack\IntegerDecoder.cs (3)
73throw new HPackDecodingException(SR.net_http_hpack_bad_integer); 81throw new HPackDecodingException(SR.net_http_hpack_bad_integer); 91throw new HPackDecodingException(SR.net_http_hpack_bad_integer);
31 references to HPackDecodingException
Microsoft.AspNetCore.Shared.Tests (31)
runtime\Http2\HPackDecoderTest.cs (30)
176HPackDecodingException exception = Assert.Throws<HPackDecodingException>(() => 253HPackDecodingException exception = Assert.Throws<HPackDecodingException>(() => _decoder.Decode(new byte[] { 0x7e }, endHeaders: true, handler: _handler)); 277HPackDecodingException exception = Assert.Throws<HPackDecodingException>(() => _decoder.Decode(encoded, endHeaders: true, handler: _handler)); 301HPackDecodingException exception = Assert.Throws<HPackDecodingException>(() => _decoder.Decode(encoded, endHeaders: true, handler: _handler)); 325HPackDecodingException exception = Assert.Throws<HPackDecodingException>(() => _decoder.Decode(encoded, endHeaders: true, handler: _handler)); 371HPackDecodingException exception = Assert.Throws<HPackDecodingException>(() => _decoder.Decode(encoded, endHeaders: true, handler: _handler)); 403HPackDecodingException exception = Assert.Throws<HPackDecodingException>(() => _decoder.Decode(new byte[] { 0x0f, 0x2f }, endHeaders: true, handler: _handler)); 498HPackDecodingException exception = Assert.Throws<HPackDecodingException>(() => _decoder.Decode(new byte[] { 0x1f, 0x2f }, endHeaders: true, handler: _handler)); 621HPackDecodingException exception = Assert.Throws<HPackDecodingException>(() => _decoder.Decode(data, endHeaders: true, handler: _handler)); 636HPackDecodingException exception = Assert.Throws<HPackDecodingException>(() => _decoder.Decode(data, endHeaders: true, handler: _handler)); 663HPackDecodingException exception = Assert.Throws<HPackDecodingException>(() => 676HPackDecodingException exception = Assert.Throws<HPackDecodingException>(() => _decoder.Decode(encoded, endHeaders: true, handler: _handler)); 727var ex = Assert.Throws<HPackDecodingException>(() => decoder.Decode(encoded, endHeaders: true, handler: _handler)); 867HPackDecodingException exception = Assert.Throws<HPackDecodingException>(() => _decoder.Decode(encoded, endHeaders: true, handler: _handler)); 901HPackDecodingException exception = Assert.Throws<HPackDecodingException>(() => _decoder.Decode(encoded, endHeaders: true, handler: _handler));
runtime\Http2\HPackIntegerTest.cs (1)
103Assert.Throws<HPackDecodingException>(() => decoder.TryDecode(octets[octets.Length - 1], out intResult));