6 writes to HttpVersion
Interop.FunctionalTests (2)
Http2WebSocketInteropTests.cs (2)
80
wsClient.Options.
HttpVersion
= Version.Parse(clientVersion);
144
wsClient.Options.
HttpVersion
= Version.Parse("2.0");
Microsoft.AspNetCore.SignalR.Client.FunctionalTests (4)
HubConnectionTests.cs (4)
1770
o.
HttpVersion
= HttpVersion.Version20;
1829
o.
HttpVersion
= HttpVersion.Version20;
1889
o.
HttpVersion
= HttpVersion.Version20;
1931
o.
HttpVersion
= HttpVersion.Version20;
8 references to HttpVersion
System.Net.WebSockets.Client (8)
System\Net\WebSockets\ClientWebSocketOptions.cs (1)
60
/// <summary>Gets or sets the policy that determines how <see cref="ClientWebSocketOptions.
HttpVersion
" /> is interpreted and how the final HTTP version is negotiated with the server.</summary>
System\Net\WebSockets\WebSocketHandle.Managed.cs (7)
54
if (options.
HttpVersion
.Major >= 2 || options.HttpVersionPolicy == HttpVersionPolicy.RequestVersionOrHigher)
71
bool tryDowngrade = uri.Scheme == UriScheme.Ws && (options.
HttpVersion
== HttpVersion.Version11 || options.HttpVersionPolicy == HttpVersionPolicy.RequestVersionOrLower);
80
if (!tryDowngrade && options.
HttpVersion
>= HttpVersion.Version20
81
|| (options.
HttpVersion
== HttpVersion.Version11 && options.HttpVersionPolicy == HttpVersionPolicy.RequestVersionOrHigher && uri.Scheme == UriScheme.Wss))
83
if (options.
HttpVersion
> HttpVersion.Version20 && options.HttpVersionPolicy != HttpVersionPolicy.RequestVersionOrLower)
90
else if (tryDowngrade || options.
HttpVersion
== HttpVersion.Version11)
140
&& (options.
HttpVersion
== HttpVersion.Version11 || options.HttpVersionPolicy == HttpVersionPolicy.RequestVersionOrLower))