संपादित करें

इसके माध्यम से साझा किया गया


HttpResponseMessage.TrailingHeaders Property

Definition

Gets the collection of trailing headers included in an HTTP response.

public:
 property System::Net::Http::Headers::HttpResponseHeaders ^ TrailingHeaders { System::Net::Http::Headers::HttpResponseHeaders ^ get(); };
public System.Net.Http.Headers.HttpResponseHeaders TrailingHeaders { get; }
member this.TrailingHeaders : System.Net.Http.Headers.HttpResponseHeaders
Public ReadOnly Property TrailingHeaders As HttpResponseHeaders

Property Value

The collection of trailing headers in the HTTP response.

Exceptions

PROTOCOL_ERROR: The HTTP/2 response contains pseudo-headers in the Trailing Headers Frame.

Remarks

Forbidden headers will be ignored.

Since trailing headers are sent as an HTTP header appended at the end of the response message, the TrailingHeaders property returns an empty HttpResponseHeaders instance if it is accessed and the response content has not been read completely.

For additional information on trailing headers, see RFC 7230 - 4.1.2. Chunked Trailer Part.

Applies to