16 references to GetTrailer
InMemory.FunctionalTests (16)
ChunkedRequestTests.cs (13)
243Assert.Throws<InvalidOperationException>(() => request.GetTrailer("X-Trailer-Header")); // Not yet 250Assert.Throws<InvalidOperationException>(() => request.GetTrailer("X-Trailer-Header")); // Not yet 258Assert.Throws<InvalidOperationException>(() => request.GetTrailer("X-Trailer-Header")); 274Assert.Equal(string.Empty, request.GetTrailer("X-Trailer-Header").ToString()); 282Assert.Equal(new string('a', requestsReceived), request.GetTrailer("X-Trailer-Header").ToString()); 290Assert.Equal(string.Empty, request.GetTrailer("X-Trailer-Header").ToString()); 369Assert.Throws<InvalidOperationException>(() => request.GetTrailer("X-Trailer-Header")); // Not yet 376Assert.Throws<InvalidOperationException>(() => request.GetTrailer("X-Trailer-Header")); // Not yet 384Assert.Throws<InvalidOperationException>(() => request.GetTrailer("X-Trailer-Header")); 405Assert.Equal(string.Empty, request.GetTrailer("X-Trailer-Header").ToString()); 413Assert.Equal(new string('a', requestsReceived), request.GetTrailer("X-Trailer-Header").ToString()); 421Assert.Equal(string.Empty, request.GetTrailer("X-Trailer-Header").ToString()); 596Assert.Equal(new string('a', requestsReceived), request.GetTrailer("X-Trailer-Header").ToString());
Http3\Http3StreamTests.cs (2)
1985testValue = c.Request.GetTrailer("TestName"); 2063c.Request.GetTrailer("TestName");
MaxRequestBodySizeTests.cs (1)
481Assert.Equal("trailing-value", context.Request.GetTrailer("Trailing-Header").ToString());