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