Bagikan melalui


RequestTrailerExtensions.GetTrailer(HttpRequest, String) Metode

Definisi

Mendapatkan header berikutnya yang diminta dari respons. Pemeriksaan SupportsTrailers(HttpRequest) atau NotSupportedException dapat dilemparkan. Periksa CheckTrailersAvailable(HttpRequest) atau InvalidOperationException dapat dilemparkan.

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

Parameter

request
HttpRequest
trailerName
String

Mengembalikan

Berlaku untuk