RequestTrailerExtensions.GetTrailer(HttpRequest, String) Metoda

Definice

Získá požadovanou koncovou hlavičku z odpovědi. Kontrola SupportsTrailers(HttpRequest) nebo může být vyvolána výjimka NotSupportedException. Kontrola CheckTrailersAvailable(HttpRequest) nebo může být vyvolána výjimka 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

Parametry

request
HttpRequest
trailerName
String

Návraty

Platí pro