ResponseTrailerExtensions.DeclareTrailer(HttpResponse, String) 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
将给定的预告片名称添加到“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