RequestTrailerExtensions.GetTrailer(HttpRequest, String) 方法

定义

从响应中获取请求的尾随标头。 可能会引发 Check SupportsTrailers(HttpRequest) 或 NotSupportedException。 可能会引发 Check CheckTrailersAvailable(HttpRequest) 或 InvalidOperationException。

public:
[System::Runtime::CompilerServices::Extension]
 static Microsoft::Extensions::Primitives::StringValues GetTrailer(Microsoft::AspNetCore::Http::HttpRequest ^ request, System::String ^ trailerName);
public static Microsoft.Extensions.Primitives.StringValues GetTrailer (this Microsoft.AspNetCore.Http.HttpRequest request, string trailerName);
static member GetTrailer : Microsoft.AspNetCore.Http.HttpRequest * string -> Microsoft.Extensions.Primitives.StringValues
<Extension()>
Public Function GetTrailer (request As HttpRequest, trailerName As String) As StringValues

参数

request
HttpRequest
trailerName
String

返回

适用于