共用方式為


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

傳回

適用於