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