58 references to TrailingHeaders
IIS.FunctionalTests (20)
Http2TrailersResetTests.cs (18)
53
Assert.Empty(response.
TrailingHeaders
);
64
Assert.Empty(response.
TrailingHeaders
);
75
Assert.NotEmpty(response.
TrailingHeaders
);
76
Assert.Equal("TrailerValue", response.
TrailingHeaders
.GetValues("TrailerName").Single());
88
Assert.NotEmpty(response.
TrailingHeaders
);
89
Assert.Equal("Trailer Value", response.
TrailingHeaders
.GetValues("TrailerName").Single());
103
Assert.NotEmpty(response.
TrailingHeaders
);
104
Assert.Equal("Trailer Value", response.
TrailingHeaders
.GetValues("TrailerName").Single());
121
Assert.NotEmpty(response.
TrailingHeaders
);
122
Assert.Equal("Trailer Value", response.
TrailingHeaders
.GetValues("TrailerName").Single());
140
Assert.NotEmpty(response.
TrailingHeaders
);
141
Assert.Equal("Trailer Value", response.
TrailingHeaders
.GetValues("TrailerName").Single());
152
Assert.NotEmpty(response.
TrailingHeaders
);
154
Assert.Equal(new[] { "TrailerValue0", "TrailerValue1" }, response.
TrailingHeaders
.GetValues("TrailerName"));
166
Assert.NotEmpty(response.
TrailingHeaders
);
167
Assert.Equal("TrailerValue", response.
TrailingHeaders
.GetValues("TrailerName").Single());
183
Assert.NotEmpty(response.
TrailingHeaders
);
184
Assert.Equal("Trailer Value", response.
TrailingHeaders
.GetValues("TrailerName").Single());
Http3Tests.cs (1)
113
Assert.Equal("value", response.
TrailingHeaders
.GetValues("custom").SingleOrDefault());
src\Servers\IIS\IIS\test\Common.FunctionalTests\Http2Tests.cs (1)
324
Assert.Empty(response.
TrailingHeaders
);
IISExpress.FunctionalTests (1)
src\Servers\IIS\IIS\test\Common.FunctionalTests\Http2Tests.cs (1)
324
Assert.Empty(response.
TrailingHeaders
);
Interop.FunctionalTests (7)
Http2\Http2RequestTests.cs (1)
323
return (data.ToArray(), responseMessage.
TrailingHeaders
);
Http3\Http3RequestTests.cs (2)
1381
Logger.LogInformation($"Client trailer count: {response.
TrailingHeaders
.Count()}");
1387
var value = response.
TrailingHeaders
.GetValues($"trailer-{i}").Single();
HttpClientHttp2InteropTests.cs (4)
539
Assert.Equal("TestValue", response.
TrailingHeaders
.GetValues("TestTrailer").Single());
571
Assert.False(response.
TrailingHeaders
.TryGetValues("TestTrailer", out var none));
576
Assert.Equal("TestValue", response.
TrailingHeaders
.GetValues("TestTrailer").Single());
688
Assert.Equal("TestValue", response.
TrailingHeaders
.GetValues("TestTrailer").Single());
Microsoft.AspNetCore.Server.HttpSys.FunctionalTests (23)
Http3Tests.cs (1)
152
Assert.Equal("value", response.
TrailingHeaders
.GetValues("custom").SingleOrDefault());
ResponseTrailersTests.cs (22)
35
Assert.Empty(response.
TrailingHeaders
);
53
Assert.Empty(response.
TrailingHeaders
);
74
Assert.Empty(response.
TrailingHeaders
);
92
Assert.NotEmpty(response.
TrailingHeaders
);
93
Assert.Equal("TrailerValue", response.
TrailingHeaders
.GetValues("TrailerName").Single());
111
Assert.NotEmpty(response.
TrailingHeaders
);
112
Assert.Equal("Trailer Value", response.
TrailingHeaders
.GetValues("TrailerName").Single());
142
Assert.Empty(response.
TrailingHeaders
);
167
Assert.NotEmpty(response.
TrailingHeaders
);
168
Assert.Equal("Trailer Value", response.
TrailingHeaders
.GetValues("TrailerName").Single());
193
Assert.NotEmpty(response.
TrailingHeaders
);
194
Assert.Equal("Trailer Value", response.
TrailingHeaders
.GetValues("TrailerName").Single());
219
Assert.Empty(response.
TrailingHeaders
);
238
Assert.NotEmpty(response.
TrailingHeaders
);
239
Assert.Equal("TrailerValue", response.
TrailingHeaders
.GetValues("TrailerName").Single());
261
Assert.NotEmpty(response.
TrailingHeaders
);
262
Assert.Equal("Trailer Value", response.
TrailingHeaders
.GetValues("TrailerName").Single());
280
Assert.NotEmpty(response.
TrailingHeaders
);
283
Assert.Equal(new[] { "TrailerValue0", "TrailerValue1" }, response.
TrailingHeaders
.GetValues("TrailerName"));
308
Assert.NotEmpty(response.
TrailingHeaders
);
311
Assert.Equal(values, response.
TrailingHeaders
.GetValues("ThisIsALongerHeaderNameThatStillWorksForReals"));
327
var headers = response.
TrailingHeaders
;
Microsoft.AspNetCore.TestHost (1)
ClientHandler.cs (1)
204
bool success = response.
TrailingHeaders
.TryAddWithoutValidation(trailer.Key, (IEnumerable<string>)trailer.Value);
Microsoft.AspNetCore.TestHost.Tests (4)
ClientHandlerTests.cs (4)
223
Assert.Empty(response.
TrailingHeaders
);
230
Assert.Empty(response.
TrailingHeaders
);
239
Assert.Empty(response.
TrailingHeaders
);
249
Assert.Collection(response.
TrailingHeaders
,
System.Net.Http (2)
System\Net\Http\SocketsHttpHandler\Http3RequestStream.cs (1)
596
responseMessage.
TrailingHeaders
.TryAddWithoutValidation(name, value);
System\Net\Http\SocketsHttpHandler\HttpConnection.cs (1)
1299
headers = response.
TrailingHeaders
;