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.

public:
[System::Runtime::CompilerServices::Extension]
 static void DeclareTrailer(Microsoft::AspNetCore::Http::HttpResponse ^ response, System::String ^ trailerName);
public static void DeclareTrailer (this Microsoft.AspNetCore.Http.HttpResponse response, string trailerName);
static member DeclareTrailer : Microsoft.AspNetCore.Http.HttpResponse * string -> unit
<Extension()>
Public Sub DeclareTrailer (response As HttpResponse, trailerName As String)

Parameters

response
HttpResponse
trailerName
String

Applies to