Skip to content

Commit 788bf56

Browse files
authored
Document WinHttpHandler trailer support (#11197)
1 parent 0c447c7 commit 788bf56

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

xml/System.Net.Http/WinHttpHandler.xml

+9
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,15 @@ This class is also available for use in Desktop apps by installing it as a NuGet
5555
5656
Starting in .NET 5, <xref:System.Net.Http.WinHttpHandler> is no longer included in the *System.Net.Http.dll* assembly as part of the .NET runtime. For more information, see [WinHttpHandler removed from .NET runtime](/dotnet/core/compatibility/3.1-5.0#winhttphandler-removed-from-net-runtime).
5757
58+
### Trailing headers
59+
60+
Starting with version 6.0.0, <xref:System.Net.Http.WinHttpHandler> supports trailing headers, also known as trailers ([RFC 7230 - 4.1.2. Chunked Trailer Part](https://tools.ietf.org/html/rfc7230#section-4.1.2)).
61+
62+
- On .NET Standard 2.1 and .NET 8 or later, trailers are added to <xref:System.Net.Http.HttpResponseMessage.TrailingHeaders>.
63+
- On .NET Framework, trailers are added to a well-known property in <xref:System.Net.Http.HttpRequestMessage.Properties?displayProperty=nameWithType> on the request object corresponding to the response (<xref:System.Net.Http.HttpResponseMessage.RequestMessage?displayProperty=nameWithType>). The name of the property is `__ResponseTrailers`, the type of the property value is <xref:System.Net.Http.Headers.HttpHeaders>.
64+
65+
Trailer support is implemented via the `WINHTTP_QUERY_FLAG_TRAILERS` [Query Info Flag](/windows/win32/winhttp/query-info-flags) which has been introduced in Windows 11, version 21H2 (10.0; Build 22000). On Windows systems where `WINHTTP_QUERY_FLAG_TRAILERS` is unsupported, trailers are ignored.
66+
5867
]]></format>
5968
</remarks>
6069
</Docs>

0 commit comments

Comments
 (0)