56 references to TrailingHeaders
IIS.FunctionalTests (20)
Http2TrailersResetTests.cs (18)
52Assert.Empty(response.TrailingHeaders); 63Assert.Empty(response.TrailingHeaders); 74Assert.NotEmpty(response.TrailingHeaders); 75Assert.Equal("TrailerValue", response.TrailingHeaders.GetValues("TrailerName").Single()); 87Assert.NotEmpty(response.TrailingHeaders); 88Assert.Equal("Trailer Value", response.TrailingHeaders.GetValues("TrailerName").Single()); 102Assert.NotEmpty(response.TrailingHeaders); 103Assert.Equal("Trailer Value", response.TrailingHeaders.GetValues("TrailerName").Single()); 120Assert.NotEmpty(response.TrailingHeaders); 121Assert.Equal("Trailer Value", response.TrailingHeaders.GetValues("TrailerName").Single()); 139Assert.NotEmpty(response.TrailingHeaders); 140Assert.Equal("Trailer Value", response.TrailingHeaders.GetValues("TrailerName").Single()); 151Assert.NotEmpty(response.TrailingHeaders); 153Assert.Equal(new[] { "TrailerValue0", "TrailerValue1" }, response.TrailingHeaders.GetValues("TrailerName")); 165Assert.NotEmpty(response.TrailingHeaders); 166Assert.Equal("TrailerValue", response.TrailingHeaders.GetValues("TrailerName").Single()); 182Assert.NotEmpty(response.TrailingHeaders); 183Assert.Equal("Trailer Value", response.TrailingHeaders.GetValues("TrailerName").Single());
Http3Tests.cs (1)
112Assert.Equal("value", response.TrailingHeaders.GetValues("custom").SingleOrDefault());
src\Servers\IIS\IIS\test\Common.FunctionalTests\Http2Tests.cs (1)
323Assert.Empty(response.TrailingHeaders);
IISExpress.FunctionalTests (1)
src\Servers\IIS\IIS\test\Common.FunctionalTests\Http2Tests.cs (1)
323Assert.Empty(response.TrailingHeaders);
Interop.FunctionalTests (7)
Http2\Http2RequestTests.cs (1)
323return (data.ToArray(), responseMessage.TrailingHeaders);
Http3\Http3RequestTests.cs (2)
1382Logger.LogInformation($"Client trailer count: {response.TrailingHeaders.Count()}"); 1388var value = response.TrailingHeaders.GetValues($"trailer-{i}").Single();
HttpClientHttp2InteropTests.cs (4)
539Assert.Equal("TestValue", response.TrailingHeaders.GetValues("TestTrailer").Single()); 571Assert.False(response.TrailingHeaders.TryGetValues("TestTrailer", out var none)); 576Assert.Equal("TestValue", response.TrailingHeaders.GetValues("TestTrailer").Single()); 688Assert.Equal("TestValue", response.TrailingHeaders.GetValues("TestTrailer").Single());
Microsoft.AspNetCore.Server.HttpSys.FunctionalTests (23)
Http3Tests.cs (1)
152Assert.Equal("value", response.TrailingHeaders.GetValues("custom").SingleOrDefault());
ResponseTrailersTests.cs (22)
35Assert.Empty(response.TrailingHeaders); 53Assert.Empty(response.TrailingHeaders); 74Assert.Empty(response.TrailingHeaders); 92Assert.NotEmpty(response.TrailingHeaders); 93Assert.Equal("TrailerValue", response.TrailingHeaders.GetValues("TrailerName").Single()); 111Assert.NotEmpty(response.TrailingHeaders); 112Assert.Equal("Trailer Value", response.TrailingHeaders.GetValues("TrailerName").Single()); 142Assert.Empty(response.TrailingHeaders); 167Assert.NotEmpty(response.TrailingHeaders); 168Assert.Equal("Trailer Value", response.TrailingHeaders.GetValues("TrailerName").Single()); 193Assert.NotEmpty(response.TrailingHeaders); 194Assert.Equal("Trailer Value", response.TrailingHeaders.GetValues("TrailerName").Single()); 219Assert.Empty(response.TrailingHeaders); 238Assert.NotEmpty(response.TrailingHeaders); 239Assert.Equal("TrailerValue", response.TrailingHeaders.GetValues("TrailerName").Single()); 261Assert.NotEmpty(response.TrailingHeaders); 262Assert.Equal("Trailer Value", response.TrailingHeaders.GetValues("TrailerName").Single()); 280Assert.NotEmpty(response.TrailingHeaders); 283Assert.Equal(new[] { "TrailerValue0", "TrailerValue1" }, response.TrailingHeaders.GetValues("TrailerName")); 308Assert.NotEmpty(response.TrailingHeaders); 311Assert.Equal(values, response.TrailingHeaders.GetValues("ThisIsALongerHeaderNameThatStillWorksForReals")); 327var headers = response.TrailingHeaders;
Microsoft.AspNetCore.TestHost (1)
ClientHandler.cs (1)
204bool success = response.TrailingHeaders.TryAddWithoutValidation(trailer.Key, (IEnumerable<string>)trailer.Value);
Microsoft.AspNetCore.TestHost.Tests (4)
ClientHandlerTests.cs (4)
224Assert.Empty(response.TrailingHeaders); 231Assert.Empty(response.TrailingHeaders); 240Assert.Empty(response.TrailingHeaders); 250Assert.Collection(response.TrailingHeaders,