ResponseTrailerExtensions.DeclareTrailer(HttpResponse, String) 方法

定义

将给定的预告片名称添加到“Trailer”响应标头。 必须在发送响应标头之前执行此操作。

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)

参数

response
HttpResponse
trailerName
String

适用于