61 references to SR
Microsoft.AspNetCore.Shared.Tests (61)
artifacts\obj\Microsoft.AspNetCore.Shared.Tests\Release\net10.0\System.Net.Http.SR.cs (1)
10internal static global::System.Resources.ResourceManager ResourceManager => s_resourceManager ?? (s_resourceManager = new global::System.Resources.ResourceManager(typeof(SR)));
runtime\Http2\HPackDecoderTest.cs (26)
178Assert.Equal(SR.Format(SR.net_http_hpack_invalid_index, 62), exception.Message); 254Assert.Equal(SR.Format(SR.net_http_hpack_invalid_index, 62), exception.Message); 278Assert.Equal(SR.Format(SR.net_http_invalid_header_name, string.Empty), exception.Message); 302Assert.Equal(SR.Format(SR.net_http_invalid_header_name, string.Empty), exception.Message); 326Assert.Equal(SR.Format(SR.net_http_invalid_header_name, string.Empty), exception.Message); 372Assert.Equal(SR.Format(SR.net_http_invalid_header_name, string.Empty), exception.Message); 404Assert.Equal(SR.Format(SR.net_http_hpack_invalid_index, 62), exception.Message); 499Assert.Equal(SR.Format(SR.net_http_hpack_invalid_index, 62), exception.Message); 622Assert.Equal(SR.net_http_hpack_late_dynamic_table_size_update, exception.Message); 637Assert.Equal(SR.net_http_hpack_late_dynamic_table_size_update, exception.Message); 665Assert.Equal(SR.Format(SR.net_http_hpack_large_table_size_update, 4097, DynamicTableInitialMaxSize), exception.Message); 677Assert.Equal(SR.Format(SR.net_http_headers_exceeded_length, MaxHeaderFieldSize), exception.Message); 728Assert.Equal(SR.Format(SR.net_http_headers_exceeded_length, MaxHeaderFieldSize + 1), ex.Message); 868Assert.Equal(SR.net_http_hpack_incomplete_header_block, exception.Message); 902Assert.Equal(SR.net_http_hpack_huffman_decode_failed, exception.Message);
runtime\Http2\HuffmanDecodingTests.cs (3)
272Assert.Equal(SR.net_http_hpack_huffman_decode_failed, exception.Message); 289Assert.Equal(SR.net_http_hpack_huffman_decode_failed, exception.Message); 334Assert.Equal(SR.net_http_hpack_huffman_decode_failed, exception.Message);
runtime\Http3\QPackDecoderTest.cs (1)
296Assert.Equal(SR.net_http_hpack_incomplete_header_block, exception.Message);
src\Shared\runtime\Http2\Hpack\HPackDecoder.cs (12)
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\HPackEncoder.cs (1)
403throw new HttpRequestException(SR.net_http_request_invalid_char_encoding);
src\Shared\runtime\Http2\Hpack\Huffman.cs (4)
733throw new HuffmanDecodingException(SR.net_http_hpack_huffman_decode_failed); 776throw new HuffmanDecodingException(SR.net_http_hpack_huffman_decode_failed); 792throw new HuffmanDecodingException(SR.net_http_hpack_huffman_decode_failed); 800throw new HuffmanDecodingException(SR.net_http_hpack_huffman_decode_failed);
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);
src\Shared\runtime\Http3\QPack\QPackDecoder.cs (9)
277throw new QPackDecodingException(SR.Format(SR.net_http_invalid_header_name, "")); 484throw new QPackDecodingException(SR.Format(SR.net_http_invalid_header_name, "")); 586throw new QPackDecodingException(SR.net_http_hpack_incomplete_header_block); 621throw new QPackDecodingException(SR.Format(SR.net_http_headers_exceeded_length, _maxHeadersLength)); 662throw new QPackDecodingException(SR.net_http_hpack_huffman_decode_failed, ex); 754throw new QPackDecodingException(SR.net_http_qpack_no_dynamic_table);
src\Shared\runtime\Http3\QPack\QPackEncoder.cs (1)
309throw new QPackEncodingException(SR.net_http_request_invalid_char_encoding);