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