507 references to _decodedHeaders
InMemory.FunctionalTests (507)
Http2\Http2ConnectionTests.cs (18)
359Assert.Single(_decodedHeaders); 360Assert.Equal("true", _decodedHeaders["trailer-1"]); 362_decodedHeaders.Clear(); 387Assert.Single(_decodedHeaders); 388Assert.Equal("true", _decodedHeaders[$"trailer-{i + 1}"]); 390_decodedHeaders.Clear(); 4998Assert.Equal(11, _decodedHeaders.Count); 4999Assert.Contains("date", _decodedHeaders.Keys, StringComparer.OrdinalIgnoreCase); 5000Assert.Equal("200", _decodedHeaders[InternalHeaderNames.Status]); 5001Assert.Equal("0", _decodedHeaders["content-length"]); 5002Assert.Equal(_4kHeaderValue, _decodedHeaders["a"]); 5003Assert.Equal(_4kHeaderValue, _decodedHeaders["b"]); 5004Assert.Equal(_4kHeaderValue, _decodedHeaders["c"]); 5005Assert.Equal(_4kHeaderValue, _decodedHeaders["d"]); 5006Assert.Equal(_4kHeaderValue, _decodedHeaders["e"]); 5007Assert.Equal(_4kHeaderValue, _decodedHeaders["f"]); 5008Assert.Equal(_4kHeaderValue, _decodedHeaders["g"]); 5009Assert.Equal(_4kHeaderValue, _decodedHeaders["h"]);
Http2\Http2StreamTests.cs (462)
110Assert.Equal(4, _decodedHeaders.Count); 111Assert.Contains("date", _decodedHeaders.Keys, StringComparer.OrdinalIgnoreCase); 112Assert.Equal("200", _decodedHeaders[InternalHeaderNames.Status]); 113Assert.Equal("0", _decodedHeaders[HeaderNames.ContentLength]); 114Assert.Equal(method, _decodedHeaders["Method"]); 115_decodedHeaders.Clear(); 129Assert.Equal(4, _decodedHeaders.Count); 130Assert.Contains("date", _decodedHeaders.Keys, StringComparer.OrdinalIgnoreCase); 131Assert.Equal("200", _decodedHeaders[InternalHeaderNames.Status]); 132Assert.Equal("0", _decodedHeaders[HeaderNames.ContentLength]); 133Assert.Equal(method, _decodedHeaders["Method"]); 134_decodedHeaders.Clear(); 160Assert.Equal(3, _decodedHeaders.Count); 161Assert.Contains("date", _decodedHeaders.Keys, StringComparer.OrdinalIgnoreCase); 162Assert.Equal("200", _decodedHeaders[InternalHeaderNames.Status]); 163Assert.Equal("HEAD", _decodedHeaders["Method"]); 212Assert.Equal(2, _decodedHeaders.Count); 213Assert.Contains("date", _decodedHeaders.Keys, StringComparer.OrdinalIgnoreCase); 214Assert.Equal("200", _decodedHeaders[InternalHeaderNames.Status]); 263Assert.Equal(2, _decodedHeaders.Count); 264Assert.Contains("date", _decodedHeaders.Keys, StringComparer.OrdinalIgnoreCase); 265Assert.Equal("200", _decodedHeaders[InternalHeaderNames.Status]); 287Assert.Equal(3, _decodedHeaders.Count); 288Assert.Contains("date", _decodedHeaders.Keys, StringComparer.OrdinalIgnoreCase); 289Assert.Equal("200", _decodedHeaders[InternalHeaderNames.Status]); 290Assert.Equal("CONNECT", _decodedHeaders["Method"]); 316Assert.Equal(5, _decodedHeaders.Count); 317Assert.Contains("date", _decodedHeaders.Keys, StringComparer.OrdinalIgnoreCase); 318Assert.Equal("200", _decodedHeaders[InternalHeaderNames.Status]); 319Assert.Equal("", _decodedHeaders["path"]); 320Assert.Equal("*", _decodedHeaders["rawtarget"]); 321Assert.Equal("0", _decodedHeaders["content-length"]); 347Assert.Equal(5, _decodedHeaders.Count); 348Assert.Contains("date", _decodedHeaders.Keys, StringComparer.OrdinalIgnoreCase); 349Assert.Equal("200", _decodedHeaders[InternalHeaderNames.Status]); 350Assert.Equal("/", _decodedHeaders["path"]); 351Assert.Equal("/", _decodedHeaders["rawtarget"]); 352Assert.Equal("0", _decodedHeaders["content-length"]); 384Assert.Equal(6, _decodedHeaders.Count); 385Assert.Contains("date", _decodedHeaders.Keys, StringComparer.OrdinalIgnoreCase); 386Assert.Equal("200", _decodedHeaders[InternalHeaderNames.Status]); 387Assert.Equal("/a/path", _decodedHeaders["path"]); 388Assert.Equal("?a&que%35ry", _decodedHeaders["query"]); 389Assert.Equal("/a/path?a&que%35ry", _decodedHeaders["rawtarget"]); 390Assert.Equal("0", _decodedHeaders["content-length"]); 429Assert.Equal(3, _decodedHeaders.Count); 430Assert.Contains("date", _decodedHeaders.Keys, StringComparer.OrdinalIgnoreCase); 431Assert.Equal("200", _decodedHeaders[InternalHeaderNames.Status]); 432Assert.Equal("0", _decodedHeaders["content-length"]); 501Assert.Equal(3, _decodedHeaders.Count); 502Assert.Contains("date", _decodedHeaders.Keys, StringComparer.OrdinalIgnoreCase); 503Assert.Equal("200", _decodedHeaders[InternalHeaderNames.Status]); 504Assert.Equal("0", _decodedHeaders[HeaderNames.ContentLength]); 552Assert.Equal(3, _decodedHeaders.Count); 553Assert.Contains("date", _decodedHeaders.Keys, StringComparer.OrdinalIgnoreCase); 554Assert.Equal("200", _decodedHeaders[InternalHeaderNames.Status]); 555Assert.Equal("0", _decodedHeaders["content-length"]); 581Assert.Equal(3, _decodedHeaders.Count); 582Assert.Contains("date", _decodedHeaders.Keys, StringComparer.OrdinalIgnoreCase); 583Assert.Equal("200", _decodedHeaders[InternalHeaderNames.Status]); 584Assert.Equal("0", _decodedHeaders["content-length"]); 610Assert.Equal(4, _decodedHeaders.Count); 611Assert.Contains("date", _decodedHeaders.Keys, StringComparer.OrdinalIgnoreCase); 612Assert.Equal("200", _decodedHeaders[InternalHeaderNames.Status]); 613Assert.Equal("0", _decodedHeaders[HeaderNames.ContentLength]); 614Assert.Equal("abc", _decodedHeaders[HeaderNames.Host]); 641Assert.Equal(4, _decodedHeaders.Count); 642Assert.Contains("date", _decodedHeaders.Keys, StringComparer.OrdinalIgnoreCase); 643Assert.Equal("200", _decodedHeaders[InternalHeaderNames.Status]); 644Assert.Equal("0", _decodedHeaders[HeaderNames.ContentLength]); 645Assert.Equal("abc", _decodedHeaders[HeaderNames.Host]); 672Assert.Equal(4, _decodedHeaders.Count); 673Assert.Contains("date", _decodedHeaders.Keys, StringComparer.OrdinalIgnoreCase); 674Assert.Equal("200", _decodedHeaders[InternalHeaderNames.Status]); 675Assert.Equal("0", _decodedHeaders[HeaderNames.ContentLength]); 676Assert.Equal("def", _decodedHeaders[HeaderNames.Host]); 703Assert.Equal(4, _decodedHeaders.Count); 704Assert.Contains("date", _decodedHeaders.Keys, StringComparer.OrdinalIgnoreCase); 705Assert.Equal("200", _decodedHeaders[InternalHeaderNames.Status]); 706Assert.Equal("0", _decodedHeaders[HeaderNames.ContentLength]); 707Assert.Equal("def", _decodedHeaders[HeaderNames.Host]); 825Assert.Equal(3, _decodedHeaders.Count); 826Assert.Contains("date", _decodedHeaders.Keys, StringComparer.OrdinalIgnoreCase); 827Assert.Equal("431", _decodedHeaders[InternalHeaderNames.Status]); 828Assert.Equal("0", _decodedHeaders[HeaderNames.ContentLength]); 859Assert.Equal(3, _decodedHeaders.Count); 860Assert.Contains("date", _decodedHeaders.Keys, StringComparer.OrdinalIgnoreCase); 861Assert.Equal("431", _decodedHeaders[InternalHeaderNames.Status]); 862Assert.Equal("0", _decodedHeaders[HeaderNames.ContentLength]); 896Assert.Equal(3, _decodedHeaders.Count); 897Assert.Contains("date", _decodedHeaders.Keys, StringComparer.OrdinalIgnoreCase); 898Assert.Equal("200", _decodedHeaders[InternalHeaderNames.Status]); 899Assert.Equal("0", _decodedHeaders[HeaderNames.ContentLength]); 937Assert.Equal(3, _decodedHeaders.Count); 938Assert.Contains("date", _decodedHeaders.Keys, StringComparer.OrdinalIgnoreCase); 939Assert.Equal("200", _decodedHeaders[InternalHeaderNames.Status]); 940Assert.Equal("0", _decodedHeaders[HeaderNames.ContentLength]); 980Assert.Equal(3, _decodedHeaders.Count); 981Assert.Contains("date", _decodedHeaders.Keys, StringComparer.OrdinalIgnoreCase); 982Assert.Equal("200", _decodedHeaders[InternalHeaderNames.Status]); 983Assert.Equal("0", _decodedHeaders[HeaderNames.ContentLength]); 1023Assert.Equal(3, _decodedHeaders.Count); 1024Assert.Contains("date", _decodedHeaders.Keys, StringComparer.OrdinalIgnoreCase); 1025Assert.Equal("200", _decodedHeaders[InternalHeaderNames.Status]); 1026Assert.Equal("0", _decodedHeaders[HeaderNames.ContentLength]); 1076Assert.Equal(3, _decodedHeaders.Count); 1077Assert.Contains("date", _decodedHeaders.Keys, StringComparer.OrdinalIgnoreCase); 1078Assert.Equal("200", _decodedHeaders[InternalHeaderNames.Status]); 1079Assert.Equal("0", _decodedHeaders[HeaderNames.ContentLength]); 1318Assert.Equal(3, _decodedHeaders.Count); 1319Assert.Contains("date", _decodedHeaders.Keys, StringComparer.OrdinalIgnoreCase); 1320Assert.Equal("200", _decodedHeaders[InternalHeaderNames.Status]); 1321Assert.Equal("0", _decodedHeaders[HeaderNames.ContentLength]); 1356Assert.Equal(3, _decodedHeaders.Count); 1357Assert.Contains("date", _decodedHeaders.Keys, StringComparer.OrdinalIgnoreCase); 1358Assert.Equal("200", _decodedHeaders[InternalHeaderNames.Status]); 1359Assert.Equal("11", _decodedHeaders[HeaderNames.ContentLength]); 1395Assert.Equal(3, _decodedHeaders.Count); 1396Assert.Contains("date", _decodedHeaders.Keys, StringComparer.OrdinalIgnoreCase); 1397Assert.Equal("200", _decodedHeaders[InternalHeaderNames.Status]); 1398Assert.Equal("11", _decodedHeaders[HeaderNames.ContentLength]); 1429Assert.Equal(3, _decodedHeaders.Count); 1430Assert.Contains("date", _decodedHeaders.Keys, StringComparer.OrdinalIgnoreCase); 1431Assert.Equal("500", _decodedHeaders[InternalHeaderNames.Status]); 1432Assert.Equal("0", _decodedHeaders[HeaderNames.ContentLength]); 1464Assert.Equal(2, _decodedHeaders.Count); 1465Assert.Contains("date", _decodedHeaders.Keys, StringComparer.OrdinalIgnoreCase); 1466Assert.Equal("200", _decodedHeaders[InternalHeaderNames.Status]); 1499Assert.Equal(3, _decodedHeaders.Count); 1500Assert.Contains("date", _decodedHeaders.Keys, StringComparer.OrdinalIgnoreCase); 1501Assert.Equal("200", _decodedHeaders[InternalHeaderNames.Status]); 1502Assert.Equal("0", _decodedHeaders[HeaderNames.ContentLength]); 1539Assert.Equal(2, _decodedHeaders.Count); 1540Assert.Contains("date", _decodedHeaders.Keys, StringComparer.OrdinalIgnoreCase); 1541Assert.Equal("200", _decodedHeaders[InternalHeaderNames.Status]); 1574Assert.Equal(2, _decodedHeaders.Count); 1575Assert.Contains("date", _decodedHeaders.Keys, StringComparer.OrdinalIgnoreCase); 1576Assert.Equal("200", _decodedHeaders[InternalHeaderNames.Status]); 1622Assert.Equal(2, _decodedHeaders.Count); 1623Assert.Contains("date", _decodedHeaders.Keys, StringComparer.OrdinalIgnoreCase); 1624Assert.Equal("200", _decodedHeaders[InternalHeaderNames.Status]); 1662Assert.Equal(2, _decodedHeaders.Count); 1663Assert.Contains("date", _decodedHeaders.Keys, StringComparer.OrdinalIgnoreCase); 1664Assert.Equal("200", _decodedHeaders[InternalHeaderNames.Status]); 1698Assert.Equal(3, _decodedHeaders.Count); 1699Assert.Contains("date", _decodedHeaders.Keys, StringComparer.OrdinalIgnoreCase); 1700Assert.Equal("200", _decodedHeaders[InternalHeaderNames.Status]); 1701Assert.Equal("0", _decodedHeaders[HeaderNames.ContentLength]); 1740Assert.Equal(2, _decodedHeaders.Count); 1741Assert.Contains("date", _decodedHeaders.Keys, StringComparer.OrdinalIgnoreCase); 1742Assert.Equal("200", _decodedHeaders[InternalHeaderNames.Status]); 1776Assert.Equal(3, _decodedHeaders.Count); 1777Assert.Contains("date", _decodedHeaders.Keys, StringComparer.OrdinalIgnoreCase); 1778Assert.Equal("200", _decodedHeaders[InternalHeaderNames.Status]); 1779Assert.Equal("11", _decodedHeaders[HeaderNames.ContentLength]); 1810Assert.Equal(2, _decodedHeaders.Count); 1811Assert.Contains("date", _decodedHeaders.Keys, StringComparer.OrdinalIgnoreCase); 1812Assert.Equal("200", _decodedHeaders[InternalHeaderNames.Status]); 1847Assert.Equal(3, _decodedHeaders.Count); 1848Assert.Contains("date", _decodedHeaders.Keys, StringComparer.OrdinalIgnoreCase); 1849Assert.Equal("200", _decodedHeaders[InternalHeaderNames.Status]); 1850Assert.Equal("11", _decodedHeaders[HeaderNames.ContentLength]); 1885Assert.Equal(3, _decodedHeaders.Count); 1886Assert.Contains("date", _decodedHeaders.Keys, StringComparer.OrdinalIgnoreCase); 1887Assert.Equal("200", _decodedHeaders[InternalHeaderNames.Status]); 1888Assert.Equal("0", _decodedHeaders[HeaderNames.ContentLength]); 1932Assert.Equal(3, _decodedHeaders.Count); 1933Assert.Contains("date", _decodedHeaders.Keys, StringComparer.OrdinalIgnoreCase); 1934Assert.Equal("413", _decodedHeaders[InternalHeaderNames.Status]); 1935Assert.Equal("0", _decodedHeaders[HeaderNames.ContentLength]); 1971Assert.Equal(3, _decodedHeaders.Count); 1972Assert.Contains("date", _decodedHeaders.Keys, StringComparer.OrdinalIgnoreCase); 1973Assert.Equal("200", _decodedHeaders[InternalHeaderNames.Status]); 1974Assert.Equal("0", _decodedHeaders[HeaderNames.ContentLength]); 2019Assert.Equal(3, _decodedHeaders.Count); 2020Assert.Contains("date", _decodedHeaders.Keys, StringComparer.OrdinalIgnoreCase); 2021Assert.Equal("413", _decodedHeaders[InternalHeaderNames.Status]); 2022Assert.Equal("0", _decodedHeaders[HeaderNames.ContentLength]); 2082Assert.Equal(3, _decodedHeaders.Count); 2083Assert.Contains("date", _decodedHeaders.Keys, StringComparer.OrdinalIgnoreCase); 2084Assert.Equal("413", _decodedHeaders[InternalHeaderNames.Status]); 2085Assert.Equal("0", _decodedHeaders[HeaderNames.ContentLength]); 2133Assert.Equal(3, _decodedHeaders.Count); 2134Assert.Contains("date", _decodedHeaders.Keys, StringComparer.OrdinalIgnoreCase); 2135Assert.Equal("200", _decodedHeaders[InternalHeaderNames.Status]); 2136Assert.Equal("0", _decodedHeaders[HeaderNames.ContentLength]); 2172Assert.Equal(2, _decodedHeaders.Count); 2173Assert.Contains("date", _decodedHeaders.Keys, StringComparer.OrdinalIgnoreCase); 2174Assert.Equal("200", _decodedHeaders[InternalHeaderNames.Status]); 2213Assert.Equal(4, _decodedHeaders.Count); 2214Assert.Contains("date", _decodedHeaders.Keys, StringComparer.OrdinalIgnoreCase); 2215Assert.Equal("200", _decodedHeaders[InternalHeaderNames.Status]); 2216Assert.Equal("Custom 你好 Type", _decodedHeaders[HeaderNames.ContentType]); 2217Assert.Equal("Custom 你好 Value", _decodedHeaders["CustomName"]); 2264Assert.Equal(3, _decodedHeaders.Count); 2265Assert.Contains("date", _decodedHeaders.Keys, StringComparer.OrdinalIgnoreCase); 2266Assert.Equal("200", _decodedHeaders[InternalHeaderNames.Status]); 2267Assert.Equal("0", _decodedHeaders[HeaderNames.ContentLength]); 2269_decodedHeaders.Clear(); 2273Assert.Single(_decodedHeaders); 2274Assert.Equal("Custom Value", _decodedHeaders["CustomName"]); 2297Assert.Equal(3, _decodedHeaders.Count); 2298Assert.Contains("date", _decodedHeaders.Keys, StringComparer.OrdinalIgnoreCase); 2299Assert.Equal("500", _decodedHeaders[InternalHeaderNames.Status]); 2300Assert.Equal("0", _decodedHeaders[HeaderNames.ContentLength]); 2344Assert.Single(_decodedHeaders); 2345Assert.Equal("Custom Value", _decodedHeaders["CustomName"]); 2347_decodedHeaders.Clear(); 2351Assert.Single(_decodedHeaders); 2352Assert.Equal("Custom Value", _decodedHeaders["CustomName"]); 2385Assert.Equal(2, _decodedHeaders.Count); 2386Assert.Contains("date", _decodedHeaders.Keys, StringComparer.OrdinalIgnoreCase); 2387Assert.Equal("200", _decodedHeaders[InternalHeaderNames.Status]); 2389_decodedHeaders.Clear(); 2393Assert.Single(_decodedHeaders); 2394Assert.Equal("Custom Value", _decodedHeaders["CustomName"]); 2440Assert.Equal(2, _decodedHeaders.Count); 2441Assert.Contains("date", _decodedHeaders.Keys, StringComparer.OrdinalIgnoreCase); 2442Assert.Equal("200", _decodedHeaders[InternalHeaderNames.Status]); 2444_decodedHeaders.Clear(); 2448Assert.Equal(5, _decodedHeaders.Count); 2449Assert.Equal(largeHeader, _decodedHeaders["CustomName0"]); 2450Assert.Equal(largeHeader, _decodedHeaders["CustomName1"]); 2451Assert.Equal(largeHeader, _decodedHeaders["CustomName2"]); 2452Assert.Equal(largeHeader, _decodedHeaders["CustomName3"]); 2453Assert.Equal(largeHeader, _decodedHeaders["CustomName4"]); 2455_decodedHeaders.Clear(); 2459Assert.Single(_decodedHeaders); 2460Assert.Equal(largeHeader, _decodedHeaders["CustomName5"]); 2498Assert.Equal(2, _decodedHeaders.Count); 2499Assert.Contains("date", _decodedHeaders.Keys, StringComparer.OrdinalIgnoreCase); 2500Assert.Equal("200", _decodedHeaders[InternalHeaderNames.Status]); 2541Assert.Equal(2, _decodedHeaders.Count); 2542Assert.Contains("date", _decodedHeaders.Keys, StringComparer.OrdinalIgnoreCase); 2543Assert.Equal("200", _decodedHeaders[InternalHeaderNames.Status]); 2545_decodedHeaders.Clear(); 2549Assert.Equal(3, _decodedHeaders.Count); 2550Assert.Equal("Custom 你好 Value", _decodedHeaders["CustomName"]); 2551Assert.Equal("Custom 你好 Tag", _decodedHeaders[HeaderNames.ETag]); 2552Assert.Equal("Custom 你好 Accept", _decodedHeaders[HeaderNames.Accept]); 2582Assert.Equal(2, _decodedHeaders.Count); 2583Assert.Contains("date", _decodedHeaders.Keys, StringComparer.OrdinalIgnoreCase); 2584Assert.Equal("200", _decodedHeaders[InternalHeaderNames.Status]); 2628Assert.Single(_decodedHeaders); 2629Assert.Equal(trailerValue, _decodedHeaders["too_long"]); 2673Assert.Equal("a-value", _decodedHeaders["a-key"]); 2674Assert.Equal("b-value", _decodedHeaders["b-key"]); 2676_decodedHeaders.Clear(); 2678Assert.Empty(_decodedHeaders); 2681Assert.Equal(trailerValue, _decodedHeaders["too_long"]); 2712Assert.Equal("a-value", _decodedHeaders["a-key"]); 2713Assert.Equal("b-value", _decodedHeaders["b-key"]); 2715_decodedHeaders.Clear(); 2717Assert.Empty(_decodedHeaders); 2720Assert.Equal(trailerValue, _decodedHeaders["too_long"]); 2754Assert.Empty(_decodedHeaders); 2762Assert.Equal(trailerValue, _decodedHeaders["too_long"]); 2763_decodedHeaders.Clear(); 2771Assert.Empty(_decodedHeaders); 2779Assert.Equal(trailerValue, _decodedHeaders["too_long2"]); 2815Assert.Single(_decodedHeaders); 2816Assert.Equal(shortValue, _decodedHeaders["short"]); 2817_decodedHeaders.Clear(); 2825Assert.Empty(_decodedHeaders); 2833Assert.Equal(trailerValue, _decodedHeaders["long"]); 2834Assert.Equal(shortValue, _decodedHeaders["short2"]); 2860Assert.Equal(2, _decodedHeaders.Count); 2861Assert.Equal("200", _decodedHeaders[":status"]); 2862Assert.Equal("Sat, 01 Jan 2000 00:00:00 GMT", _decodedHeaders["date"]); 2863_decodedHeaders.Clear(); 2871Assert.Empty(_decodedHeaders); 2879Assert.Single(_decodedHeaders); 2880Assert.Equal(value, _decodedHeaders["too_long_header"]); 2881_decodedHeaders.Clear(); 2896Assert.Empty(_decodedHeaders); 2904Assert.Single(_decodedHeaders); 2905Assert.Equal(value, _decodedHeaders["too_long_trailer"]); 2906_decodedHeaders.Clear(); 2918Assert.Equal(2, _decodedHeaders.Count); 2919Assert.Equal("200", _decodedHeaders[":status"]); 2920Assert.Equal("Sat, 01 Jan 2000 00:00:00 GMT", _decodedHeaders["date"]); 2921_decodedHeaders.Clear(); 2929Assert.Empty(_decodedHeaders); 2937Assert.Single(_decodedHeaders); 2938Assert.Equal(value, _decodedHeaders["too_long_header"]); 2939_decodedHeaders.Clear(); 2954Assert.Empty(_decodedHeaders); 2962Assert.Single(_decodedHeaders); 2963Assert.Equal(value, _decodedHeaders["too_long_trailer"]); 2964_decodedHeaders.Clear(); 3027Assert.Equal(2, _decodedHeaders.Count); 3028Assert.Contains("date", _decodedHeaders.Keys, StringComparer.OrdinalIgnoreCase); 3029Assert.Equal("200", _decodedHeaders[InternalHeaderNames.Status]); 3031_decodedHeaders.Clear(); 3034Assert.Single(_decodedHeaders); 3035Assert.Equal("Custom Value", _decodedHeaders["CustomName"]); 3079Assert.Equal(2, _decodedHeaders.Count); 3080Assert.Contains("date", _decodedHeaders.Keys, StringComparer.OrdinalIgnoreCase); 3081Assert.Equal("200", _decodedHeaders[InternalHeaderNames.Status]); 3083_decodedHeaders.Clear(); 3086Assert.Single(_decodedHeaders); 3087Assert.Equal("Custom Value", _decodedHeaders["CustomName"]); 3117Assert.Equal(3, _decodedHeaders.Count); 3118Assert.Contains("date", _decodedHeaders.Keys, StringComparer.OrdinalIgnoreCase); 3119Assert.Equal("500", _decodedHeaders[InternalHeaderNames.Status]); 3120Assert.Equal("0", _decodedHeaders[HeaderNames.ContentLength]); 3155Assert.Equal(2, _decodedHeaders.Count); 3156Assert.Contains("date", _decodedHeaders.Keys, StringComparer.OrdinalIgnoreCase); 3157Assert.Equal("200", _decodedHeaders[InternalHeaderNames.Status]); 3557Assert.Equal((int)Http2PeerSettings.DefaultMaxFrameSize, _decodedHeaders[HeaderNames.ETag].Length); 3594Assert.Equal((int)Http2PeerSettings.DefaultMaxFrameSize, _decodedHeaders[HeaderNames.ETag].Length); 3595Assert.Equal(30, _decodedHeaders[HeaderNames.TE].Length); 3643Assert.Equal((int)Http2PeerSettings.DefaultMaxFrameSize, _decodedHeaders[HeaderNames.ETag].Length); 3644Assert.Equal((int)Http2PeerSettings.DefaultMaxFrameSize, _decodedHeaders[HeaderNames.TE].Length); 3706Assert.Equal((int)Http2PeerSettings.DefaultMaxFrameSize - 20, _decodedHeaders[HeaderNames.ETag].Length); 3744Assert.Equal(headerValue, _decodedHeaders[longHeaderName]); 3811Assert.Equal(3, _decodedHeaders.Count); 3812Assert.Contains("date", _decodedHeaders.Keys, StringComparer.OrdinalIgnoreCase); 3813Assert.Equal("200", _decodedHeaders[InternalHeaderNames.Status]); 3814Assert.Equal("0", _decodedHeaders[HeaderNames.ContentLength]); 3860Assert.Equal(2, _decodedHeaders.Count); 3861Assert.Contains("date", _decodedHeaders.Keys, StringComparer.OrdinalIgnoreCase); 3862Assert.Equal("200", _decodedHeaders[InternalHeaderNames.Status]); 3904Assert.Equal(2, _decodedHeaders.Count); 3905Assert.Contains("date", _decodedHeaders.Keys, StringComparer.OrdinalIgnoreCase); 3906Assert.Equal("200", _decodedHeaders[InternalHeaderNames.Status]); 3950Assert.Equal(2, _decodedHeaders.Count); 3951Assert.Contains("date", _decodedHeaders.Keys, StringComparer.OrdinalIgnoreCase); 3952Assert.Equal("200", _decodedHeaders[InternalHeaderNames.Status]); 4003Assert.Equal(2, _decodedHeaders.Count); 4004Assert.Contains("date", _decodedHeaders.Keys, StringComparer.OrdinalIgnoreCase); 4005Assert.Equal("200", _decodedHeaders[InternalHeaderNames.Status]); 4056Assert.Equal(2, _decodedHeaders.Count); 4057Assert.Contains("date", _decodedHeaders.Keys, StringComparer.OrdinalIgnoreCase); 4058Assert.Equal("200", _decodedHeaders[InternalHeaderNames.Status]); 4102Assert.Equal(2, _decodedHeaders.Count); 4103Assert.Contains("date", _decodedHeaders.Keys, StringComparer.OrdinalIgnoreCase); 4104Assert.Equal("200", _decodedHeaders[InternalHeaderNames.Status]); 4152Assert.Equal(2, _decodedHeaders.Count); 4153Assert.Contains("date", _decodedHeaders.Keys, StringComparer.OrdinalIgnoreCase); 4154Assert.Equal("200", _decodedHeaders[InternalHeaderNames.Status]); 4197Assert.Equal(2, _decodedHeaders.Count); 4198Assert.Contains("date", _decodedHeaders.Keys, StringComparer.OrdinalIgnoreCase); 4199Assert.Equal("200", _decodedHeaders[InternalHeaderNames.Status]); 4240Assert.Equal(2, _decodedHeaders.Count); 4241Assert.Contains("date", _decodedHeaders.Keys, StringComparer.OrdinalIgnoreCase); 4242Assert.Equal("200", _decodedHeaders[InternalHeaderNames.Status]); 4278Assert.Equal(3, _decodedHeaders.Count); 4279Assert.Contains("date", _decodedHeaders.Keys, StringComparer.OrdinalIgnoreCase); 4280Assert.Equal("200", _decodedHeaders[InternalHeaderNames.Status]); 4281Assert.Equal("0", _decodedHeaders[HeaderNames.ContentLength]); 4421Assert.Equal(2, _decodedHeaders.Count); 4422Assert.Contains("date", _decodedHeaders.Keys, StringComparer.OrdinalIgnoreCase); 4423Assert.Equal("200", _decodedHeaders[InternalHeaderNames.Status]); 4471Assert.Equal(3, _decodedHeaders.Count); 4472Assert.Contains("date", _decodedHeaders.Keys, StringComparer.OrdinalIgnoreCase); 4473Assert.Equal("200", _decodedHeaders[InternalHeaderNames.Status]); 4474Assert.Equal("12", _decodedHeaders[HeaderNames.ContentLength]); 4517Assert.Equal(3, _decodedHeaders.Count); 4518Assert.Contains("date", _decodedHeaders.Keys, StringComparer.OrdinalIgnoreCase); 4519Assert.Equal("200", _decodedHeaders[InternalHeaderNames.Status]); 4520Assert.Equal("12", _decodedHeaders[HeaderNames.ContentLength]); 4557Assert.Equal(3, _decodedHeaders.Count); 4558Assert.Contains("date", _decodedHeaders.Keys, StringComparer.OrdinalIgnoreCase); 4559Assert.Equal("200", _decodedHeaders[InternalHeaderNames.Status]); 4560Assert.Equal("12", _decodedHeaders[HeaderNames.ContentLength]); 4621Assert.Equal(3, _decodedHeaders.Count); 4622Assert.Contains("date", _decodedHeaders.Keys, StringComparer.OrdinalIgnoreCase); 4623Assert.Equal("200", _decodedHeaders[InternalHeaderNames.Status]); 4624Assert.Equal("54", _decodedHeaders[HeaderNames.ContentLength]); 4653Assert.Equal(3, _decodedHeaders.Count); 4654Assert.Contains("date", _decodedHeaders.Keys, StringComparer.OrdinalIgnoreCase); 4655Assert.Equal("200", _decodedHeaders[InternalHeaderNames.Status]); 4686Assert.Equal(3, _decodedHeaders.Count); 4687Assert.Contains("date", _decodedHeaders.Keys, StringComparer.OrdinalIgnoreCase); 4688Assert.Equal("200", _decodedHeaders[InternalHeaderNames.Status]); 4719Assert.Equal(3, _decodedHeaders.Count); 4720Assert.Contains("date", _decodedHeaders.Keys, StringComparer.OrdinalIgnoreCase); 4721Assert.Equal("500", _decodedHeaders[InternalHeaderNames.Status]); 4774Assert.Equal(3, _decodedHeaders.Count); 4775Assert.Contains("date", _decodedHeaders.Keys, StringComparer.OrdinalIgnoreCase); 4776Assert.Equal("200", _decodedHeaders[InternalHeaderNames.Status]); 4777Assert.Equal("0", _decodedHeaders["content-length"]); 4834Assert.Equal(3, _decodedHeaders.Count); 4835Assert.Contains("date", _decodedHeaders.Keys, StringComparer.OrdinalIgnoreCase); 4836Assert.Equal("200", _decodedHeaders[InternalHeaderNames.Status]); 4837Assert.Equal("0", _decodedHeaders["content-length"]); 4839_decodedHeaders.Clear(); 4843Assert.Single(_decodedHeaders); 4844Assert.Equal("Custom Value", _decodedHeaders["CustomName"]); 4895Assert.Equal(3, _decodedHeaders.Count); 4896Assert.Contains("date", _decodedHeaders.Keys, StringComparer.OrdinalIgnoreCase); 4897Assert.Equal("500", _decodedHeaders[InternalHeaderNames.Status]); 4898Assert.Equal("0", _decodedHeaders[HeaderNames.ContentLength]); 4960Assert.Equal(2, _decodedHeaders.Count); 4961Assert.Contains("date", _decodedHeaders.Keys, StringComparer.OrdinalIgnoreCase); 4962Assert.Equal("200", _decodedHeaders[InternalHeaderNames.Status]); 5017Assert.Equal(3, _decodedHeaders.Count); 5018Assert.Contains("date", _decodedHeaders.Keys, StringComparer.OrdinalIgnoreCase); 5019Assert.Equal("200", _decodedHeaders[InternalHeaderNames.Status]); 5020Assert.Equal("0", _decodedHeaders[HeaderNames.ContentLength]); 5084Assert.Equal(2, _decodedHeaders.Count); 5085Assert.Contains("date", _decodedHeaders.Keys, StringComparer.OrdinalIgnoreCase); 5086Assert.Equal("200", _decodedHeaders[InternalHeaderNames.Status]); 5129Assert.Equal(3, _decodedHeaders.Count); 5130Assert.Contains("date", _decodedHeaders.Keys, StringComparer.OrdinalIgnoreCase); 5131Assert.Equal("200", _decodedHeaders[InternalHeaderNames.Status]); 5132Assert.Equal("0", _decodedHeaders[HeaderNames.ContentLength]); 5202Assert.Equal(2, _decodedHeaders.Count); 5203Assert.Contains("date", _decodedHeaders.Keys, StringComparer.OrdinalIgnoreCase); 5204Assert.Equal("200", _decodedHeaders[InternalHeaderNames.Status]); 5208_decodedHeaders.Clear(); 5212Assert.Single(_decodedHeaders); 5213Assert.Equal("Custom Value", _decodedHeaders["CustomName"]); 5276Assert.Equal(2, _decodedHeaders.Count); 5277Assert.Contains("date", _decodedHeaders.Keys, StringComparer.OrdinalIgnoreCase); 5278Assert.Equal("200", _decodedHeaders[InternalHeaderNames.Status]); 5282_decodedHeaders.Clear(); 5286Assert.Single(_decodedHeaders); 5287Assert.Equal("Custom Value", _decodedHeaders["CustomName"]); 5352Assert.Equal(3, _decodedHeaders.Count); 5353Assert.Contains("date", _decodedHeaders.Keys, StringComparer.OrdinalIgnoreCase); 5354Assert.Equal("200", _decodedHeaders[InternalHeaderNames.Status]); 5355Assert.Equal("25", _decodedHeaders[HeaderNames.ContentLength]); 5423Assert.Equal(3, _decodedHeaders.Count); 5424Assert.Contains("date", _decodedHeaders.Keys, StringComparer.OrdinalIgnoreCase); 5425Assert.Equal("200", _decodedHeaders[InternalHeaderNames.Status]); 5426Assert.Equal("25", _decodedHeaders[HeaderNames.ContentLength]); 5497Assert.Equal(2, _decodedHeaders.Count); 5498Assert.Contains("date", _decodedHeaders.Keys, StringComparer.OrdinalIgnoreCase); 5499Assert.Equal("200", _decodedHeaders[InternalHeaderNames.Status]); 5503_decodedHeaders.Clear(); 5507Assert.Single(_decodedHeaders); 5508Assert.Equal("Custom Value", _decodedHeaders["CustomName"]); 5581Assert.Equal(2, _decodedHeaders.Count); 5582Assert.Contains("date", _decodedHeaders.Keys, StringComparer.OrdinalIgnoreCase); 5583Assert.Equal("200", _decodedHeaders[InternalHeaderNames.Status]); 5587_decodedHeaders.Clear(); 5591Assert.Single(_decodedHeaders); 5592Assert.Equal("Custom Value", _decodedHeaders["CustomName"]); 5663Assert.Equal(2, _decodedHeaders.Count); 5664Assert.Contains("date", _decodedHeaders.Keys, StringComparer.OrdinalIgnoreCase); 5665Assert.Equal("200", _decodedHeaders[InternalHeaderNames.Status]); 5669_decodedHeaders.Clear(); 5673Assert.Single(_decodedHeaders); 5674Assert.Equal("Custom Value", _decodedHeaders["CustomName"]); 5750Assert.Equal(2, _decodedHeaders.Count); 5751Assert.Contains("date", _decodedHeaders.Keys, StringComparer.OrdinalIgnoreCase); 5752Assert.Equal("200", _decodedHeaders[InternalHeaderNames.Status]); 5756_decodedHeaders.Clear(); 5760Assert.Single(_decodedHeaders); 5761Assert.Equal("Custom Value", _decodedHeaders["CustomName"]); 5797Assert.Equal(3, _decodedHeaders.Count); 5798Assert.Contains("date", _decodedHeaders.Keys, StringComparer.OrdinalIgnoreCase); 5799Assert.Equal("200", _decodedHeaders[InternalHeaderNames.Status]); 5800Assert.Equal("0", _decodedHeaders["content-length"]); 5872Assert.Equal(2, _decodedHeaders.Count); 5873Assert.Contains("date", _decodedHeaders.Keys, StringComparer.OrdinalIgnoreCase); 5874Assert.Equal("200", _decodedHeaders[InternalHeaderNames.Status]); 5924Assert.Equal(2, _decodedHeaders.Count); 5925Assert.Contains("date", _decodedHeaders.Keys, StringComparer.OrdinalIgnoreCase); 5926Assert.Equal("200", _decodedHeaders[InternalHeaderNames.Status]);
Http2\Http2TestBase.cs (1)
441_decodedHeaders[nameStr] = value.GetRequestHeaderString(nameStr, _serviceContext.ServerOptions.RequestHeaderEncodingSelector, checkForNewlineChars: true);
Http2\Http2WebSocketTests.cs (26)
71Assert.Equal(2, _decodedHeaders.Count); 72Assert.Contains("date", _decodedHeaders.Keys, StringComparer.OrdinalIgnoreCase); 73Assert.Equal("200", _decodedHeaders[InternalHeaderNames.Status]); 136Assert.Equal(2, _decodedHeaders.Count); 137Assert.Contains("date", _decodedHeaders.Keys, StringComparer.OrdinalIgnoreCase); 138Assert.Equal("200", _decodedHeaders[InternalHeaderNames.Status]); 227Assert.Equal(2, _decodedHeaders.Count); 228Assert.Contains("date", _decodedHeaders.Keys, StringComparer.OrdinalIgnoreCase); 229Assert.Equal("201", _decodedHeaders[InternalHeaderNames.Status]); 260_decodedHeaders.Clear(); 263Assert.Equal(2, _decodedHeaders.Count); 264Assert.Contains("date", _decodedHeaders.Keys, StringComparer.OrdinalIgnoreCase); 265Assert.Equal("201", _decodedHeaders[InternalHeaderNames.Status]); 366Assert.Equal(2, _decodedHeaders.Count); 367Assert.Contains("date", _decodedHeaders.Keys, StringComparer.OrdinalIgnoreCase); 368Assert.Equal("200", _decodedHeaders[InternalHeaderNames.Status]); 430Assert.Equal(2, _decodedHeaders.Count); 431Assert.Contains("date", _decodedHeaders.Keys, StringComparer.OrdinalIgnoreCase); 432Assert.Equal("200", _decodedHeaders[InternalHeaderNames.Status]); 498Assert.Equal(2, _decodedHeaders.Count); 499Assert.Contains("date", _decodedHeaders.Keys, StringComparer.OrdinalIgnoreCase); 500Assert.Equal("200", _decodedHeaders[InternalHeaderNames.Status]); 562Assert.Equal(3, _decodedHeaders.Count); 563Assert.Contains("date", _decodedHeaders.Keys, StringComparer.OrdinalIgnoreCase); 564Assert.Equal("418", _decodedHeaders[InternalHeaderNames.Status]); 565Assert.Equal("2", _decodedHeaders[HeaderNames.ContentLength]);