58 references to TrailingHeaders
IIS.FunctionalTests (20)
Http2TrailersResetTests.cs (18)
53Assert.Empty(response.TrailingHeaders); 64Assert.Empty(response.TrailingHeaders); 75Assert.NotEmpty(response.TrailingHeaders); 76Assert.Equal("TrailerValue", response.TrailingHeaders.GetValues("TrailerName").Single()); 88Assert.NotEmpty(response.TrailingHeaders); 89Assert.Equal("Trailer Value", response.TrailingHeaders.GetValues("TrailerName").Single()); 103Assert.NotEmpty(response.TrailingHeaders); 104Assert.Equal("Trailer Value", response.TrailingHeaders.GetValues("TrailerName").Single()); 121Assert.NotEmpty(response.TrailingHeaders); 122Assert.Equal("Trailer Value", response.TrailingHeaders.GetValues("TrailerName").Single()); 140Assert.NotEmpty(response.TrailingHeaders); 141Assert.Equal("Trailer Value", response.TrailingHeaders.GetValues("TrailerName").Single()); 152Assert.NotEmpty(response.TrailingHeaders); 154Assert.Equal(new[] { "TrailerValue0", "TrailerValue1" }, response.TrailingHeaders.GetValues("TrailerName")); 166Assert.NotEmpty(response.TrailingHeaders); 167Assert.Equal("TrailerValue", response.TrailingHeaders.GetValues("TrailerName").Single()); 183Assert.NotEmpty(response.TrailingHeaders); 184Assert.Equal("Trailer Value", response.TrailingHeaders.GetValues("TrailerName").Single());
Http3Tests.cs (1)
113Assert.Equal("value", response.TrailingHeaders.GetValues("custom").SingleOrDefault());
src\Servers\IIS\IIS\test\Common.FunctionalTests\Http2Tests.cs (1)
324Assert.Empty(response.TrailingHeaders);
IISExpress.FunctionalTests (1)
src\Servers\IIS\IIS\test\Common.FunctionalTests\Http2Tests.cs (1)
324Assert.Empty(response.TrailingHeaders);
Interop.FunctionalTests (7)
Http2\Http2RequestTests.cs (1)
323return (data.ToArray(), responseMessage.TrailingHeaders);
Http3\Http3RequestTests.cs (2)
1381Logger.LogInformation($"Client trailer count: {response.TrailingHeaders.Count()}"); 1387var 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)
223Assert.Empty(response.TrailingHeaders); 230Assert.Empty(response.TrailingHeaders); 239Assert.Empty(response.TrailingHeaders); 249Assert.Collection(response.TrailingHeaders,
System.Net.Http (2)
System\Net\Http\SocketsHttpHandler\Http3RequestStream.cs (1)
596responseMessage.TrailingHeaders.TryAddWithoutValidation(name, value);
System\Net\Http\SocketsHttpHandler\HttpConnection.cs (1)
1299headers = response.TrailingHeaders;