78 references to AppendTrailer
Http2SampleApp (1)
TimingMiddleware.cs (1)
34
httpContext.Response.
AppendTrailer
("Server-Timing", $"app;dur={stopWatch.ElapsedMilliseconds}.0");
HttpStress (1)
Program.cs (1)
450
context.Response.
AppendTrailer
(
InMemory.FunctionalTests (57)
Http2\Http2StreamTests.cs (39)
2244
context.Response.
AppendTrailer
("CustomName", "Custom Value");
2282
context.Response.
AppendTrailer
("CustomName", "Custom Value");
2313
context.Response.
AppendTrailer
("CustomName", "Custom Value");
2361
context.Response.
AppendTrailer
("CustomName", "Custom Value");
2405
context.Response.
AppendTrailer
("CustomName0", largeHeader);
2406
context.Response.
AppendTrailer
("CustomName1", largeHeader);
2407
context.Response.
AppendTrailer
("CustomName2", largeHeader);
2408
context.Response.
AppendTrailer
("CustomName3", largeHeader);
2409
context.Response.
AppendTrailer
("CustomName4", largeHeader);
2411
context.Response.
AppendTrailer
("CustomName5", largeHeader);
2469
Assert.Throws<InvalidOperationException>(() => context.Response.
AppendTrailer
("Custom你好Name", "Custom Value"));
2470
Assert.Throws<InvalidOperationException>(() => context.Response.
AppendTrailer
("CustomName", "Custom 你好 Value"));
2471
Assert.Throws<InvalidOperationException>(() => context.Response.
AppendTrailer
("CustomName", "Custom \r Value"));
2512
Assert.Throws<InvalidOperationException>(() => context.Response.
AppendTrailer
("Custom你好Name", "Custom Value"));
2513
Assert.Throws<InvalidOperationException>(() => context.Response.
AppendTrailer
("CustomName", "Custom \r Value"));
2514
context.Response.
AppendTrailer
("CustomName", "Custom 你好 Value");
2565
context.Response.
AppendTrailer
("CustomName", "Custom 你好 Value");
2597
context.Response.
AppendTrailer
("too_long", trailerValue);
2639
context.Response.
AppendTrailer
("a-key", "a-value");
2640
context.Response.
AppendTrailer
("b-key", "b-value");
2641
context.Response.
AppendTrailer
("too_long", trailerValue);
2732
context.Response.
AppendTrailer
("too_long", trailerValue);
2733
context.Response.
AppendTrailer
("too_long2", trailerValue);
2792
context.Response.
AppendTrailer
("short", shortValue);
2793
context.Response.
AppendTrailer
("long", trailerValue);
2794
context.Response.
AppendTrailer
("short2", shortValue);
2847
context.Response.
AppendTrailer
("too_long_trailer", value);
2990
context.Response.
AppendTrailer
("CustomName", "Custom Value");
3055
context.Response.
AppendTrailer
("CustomName", "Custom Value");
4797
context.Response.
AppendTrailer
("CustomName", "Custom Value");
4865
context.Response.
AppendTrailer
("CustomName", "Custom Value");
5162
context.Response.
AppendTrailer
("CustomName", "Custom Value");
5238
context.Response.
AppendTrailer
("CustomName", "Custom Value");
5313
context.Response.
AppendTrailer
("CustomName", "Custom Value");
5384
context.Response.
AppendTrailer
("CustomName", "Custom Value");
5453
context.Response.
AppendTrailer
("CustomName", "Custom Value");
5535
context.Response.
AppendTrailer
("CustomName", "Custom Value");
5617
context.Response.
AppendTrailer
("CustomName", "Custom Value");
5701
context.Response.
AppendTrailer
("CustomName", "Custom Value");
Http3\Http3StreamTests.cs (18)
1013
Assert.Throws<InvalidOperationException>(() => context.Response.
AppendTrailer
("Custom你好Name", "Custom Value"));
1014
Assert.Throws<InvalidOperationException>(() => context.Response.
AppendTrailer
("CustomName", "Custom 你好 Value"));
1015
Assert.Throws<InvalidOperationException>(() => context.Response.
AppendTrailer
("CustomName", "Custom \r Value"));
1044
Assert.Throws<InvalidOperationException>(() => context.Response.
AppendTrailer
("Custom你好Name", "Custom Value"));
1045
Assert.Throws<InvalidOperationException>(() => context.Response.
AppendTrailer
("CustomName", "Custom \r Value"));
1046
context.Response.
AppendTrailer
("CustomName", "Custom 你好 Value");
1083
context.Response.
AppendTrailer
("CustomName", "Custom 你好 Value");
1186
context.Response.
AppendTrailer
("CustomName", "Custom Value");
1240
context.Response.
AppendTrailer
("CustomName", "Custom Value");
1489
context.Response.
AppendTrailer
("CustomName", "Custom Value");
1546
context.Response.
AppendTrailer
("CustomName", "Custom Value");
1602
context.Response.
AppendTrailer
("CustomName", "Custom Value");
1660
context.Response.
AppendTrailer
("CustomName", "Custom Value");
1716
context.Response.
AppendTrailer
("CustomName", "Custom Value");
1777
context.Response.
AppendTrailer
("CustomName", "Custom Value");
1839
context.Response.
AppendTrailer
("CustomName", "Custom Value");
1904
context.Response.
AppendTrailer
("CustomName", "Custom Value");
2941
c.Response.
AppendTrailer
("Header" + i, i + "-" + headerText);
Interop.FunctionalTests (5)
Http2\Http2RequestTests.cs (1)
255
c.Response.
AppendTrailer
("test-trailer", "value!");
HttpClientHttp2InteropTests.cs (4)
527
context.Response.
AppendTrailer
("TestTrailer", "TestValue");
560
context.Response.
AppendTrailer
("TestTrailer", "TestValue");
673
context.Response.
AppendTrailer
("TestTrailer", "TestValue");
998
context.Response.
AppendTrailer
("foo", "bar");
Microsoft.AspNetCore.Server.HttpSys.FunctionalTests (12)
Http3Tests.cs (1)
135
httpContext.Response.
AppendTrailer
("custom", "value");
ResponseTrailersTests.cs (11)
66
Assert.Throws<InvalidOperationException>(() => httpContext.Response.
AppendTrailer
(header, "value"));
85
httpContext.Response.
AppendTrailer
("trailername", "TrailerValue");
104
httpContext.Response.
AppendTrailer
("TrailerName", "Trailer Value");
128
Assert.Throws<InvalidOperationException>(() => httpContext.Response.
AppendTrailer
("TrailerName", "Trailer Value"));
156
httpContext.Response.
AppendTrailer
("TrailerName", "Trailer Value");
182
httpContext.Response.
AppendTrailer
("TrailerName", "Trailer Value");
230
httpContext.Response.
AppendTrailer
("trailername", "TrailerValue");
252
httpContext.Response.
AppendTrailer
("TrailerName", "Trailer Value");
273
httpContext.Response.
AppendTrailer
("trailername", new StringValues(new[] { "TrailerValue0", "TrailerValue1" }));
301
httpContext.Response.
AppendTrailer
("ThisIsALongerHeaderNameThatStillWorksForReals", new StringValues(values));
321
httpContext.Response.
AppendTrailer
(headerName, headerValue);
Microsoft.AspNetCore.TestHost.Tests (2)
ClientHandlerTests.cs (2)
204
context.Response.
AppendTrailer
("StartTrailer", "Value!");
215
context.Response.
AppendTrailer
("EndTrailer", "Value!");