Dela via


RequestTrailerExtensions.GetTrailer(HttpRequest, String) Method

Definition

Gets the requested trailing header from the response. Check SupportsTrailers(HttpRequest) or a NotSupportedException may be thrown. Check CheckTrailersAvailable(HttpRequest) or an InvalidOperationException may be thrown.

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

Parameters

request
HttpRequest
trailerName
String

Returns

Applies to