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