HttpResponseMessage.TrailingHeaders Property
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
The collection of trailing headers in the HTTP response.
PROTOCOL_ERROR: The HTTP/2 response contains pseudo-headers in the Trailing Headers Frame.
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.
Product | Versions |
---|---|
.NET | Core 3.0, Core 3.1, 5, 6, 7, 8, 9 |
.NET Standard | 2.1 |
.NET feedback
.NET is an open source project. Select a link to provide feedback: