RequestTrailerExtensions.GetTrailer(HttpRequest, String) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
從回應取得要求的尾端標頭。 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