ResponseTrailerExtensions.AppendTrailer Method

Definition

Adds the given trailer header to the trailers collection to be sent at the end of the response body. Check SupportsTrailers(HttpResponse) or an InvalidOperationException may be thrown.

C#
public static void AppendTrailer (this Microsoft.AspNetCore.Http.HttpResponse response, string trailerName, Microsoft.Extensions.Primitives.StringValues trailerValues);

Parameters

response
HttpResponse
trailerName
String
trailerValues
StringValues

Applies to

Tuote Versiot
ASP.NET Core 2.2, 3.0, 3.1, 5.0, 6.0, 7.0, 8.0, 9.0