ResponseTrailerExtensions.AppendTrailer 方法

定义

将给定的尾部标头添加到将在响应正文末尾发送的尾部集合。 可能会引发 Check SupportsTrailers(HttpResponse) 或 InvalidOperationException。

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

参数

response
HttpResponse
trailerName
String
trailerValues
StringValues

适用于