Skip to content

Commit 7d7739b

Browse files
author
Ron Petrusha
authored
Added HTTP/2 support switch (#2395)
1 parent 49e39a5 commit 7d7739b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

xml/System/AppContext.xml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -333,7 +333,8 @@
333333
334334
|Switch|Values|Description|
335335
|--|--|--|
336-
|`System.Net.Http.useSocketsHttpHandler` |`true`|`false`|Determines whether high-level networking APIs such as <xref:System.Net.Http.HttpClient> use <xref:System.Net.Http.SocketsHttpHandler?displayProperty=nameWithType> (`true`) or <xref:System.Net.Http.HttpClientHandler?displayProperty=nameWithType> (`false`).|
336+
|`System.Net.Http.SocketsHttpHandler.Http2Support`|`true` or `false`|Indicates whether support for the HTTP/2 protocol is enabled (`true`) or disabled (`false`). The default is disabled. The switch must be set before the first use of <xref:System.Net.Http.HttpClient>. Available starting with .NET Core 3.0 Preview 4.|
337+
|`System.Net.Http.useSocketsHttpHandler` |`true` or `false`|Determines whether high-level networking APIs such as <xref:System.Net.Http.HttpClient> use <xref:System.Net.Http.SocketsHttpHandler?displayProperty=nameWithType> (`true`) or <xref:System.Net.Http.HttpClientHandler?displayProperty=nameWithType> (`false`).|
337338
338339
## Examples
339340
The following line of code sets a switch named `Switch.AmazingLib.ThrowOnException` to `true`, which enables a legacy behavior. The library can then check whether a library consumer has set the value of the switch by calling the <xref:System.AppContext.TryGetSwitch%2A> method.

0 commit comments

Comments
 (0)