ResponseTrailerExtensions.DeclareTrailer(HttpResponse, String) Method

Definition

Adds the given trailer name to the 'Trailer' response header. This must happen before the response headers are sent.

C#
public static void DeclareTrailer (this Microsoft.AspNetCore.Http.HttpResponse response, string trailerName);

Parameters

response
HttpResponse
trailerName
String

Applies to

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