You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: xml/System/AppContext.xml
+2-1Lines changed: 2 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -333,7 +333,8 @@
333
333
334
334
|Switch|Values|Description|
335
335
|--|--|--|
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`).|
337
338
338
339
## Examples
339
340
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