6 writes to HttpVersion
Interop.FunctionalTests (2)
Http2WebSocketInteropTests.cs (2)
80wsClient.Options.HttpVersion = Version.Parse(clientVersion); 144wsClient.Options.HttpVersion = Version.Parse("2.0");
Microsoft.AspNetCore.SignalR.Client.FunctionalTests (4)
HubConnectionTests.cs (4)
1770o.HttpVersion = HttpVersion.Version20; 1829o.HttpVersion = HttpVersion.Version20; 1889o.HttpVersion = HttpVersion.Version20; 1931o.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)
54if (options.HttpVersion.Major >= 2 || options.HttpVersionPolicy == HttpVersionPolicy.RequestVersionOrHigher) 71bool tryDowngrade = uri.Scheme == UriScheme.Ws && (options.HttpVersion == HttpVersion.Version11 || options.HttpVersionPolicy == HttpVersionPolicy.RequestVersionOrLower); 80if (!tryDowngrade && options.HttpVersion >= HttpVersion.Version20 81|| (options.HttpVersion == HttpVersion.Version11 && options.HttpVersionPolicy == HttpVersionPolicy.RequestVersionOrHigher && uri.Scheme == UriScheme.Wss)) 83if (options.HttpVersion > HttpVersion.Version20 && options.HttpVersionPolicy != HttpVersionPolicy.RequestVersionOrLower) 90else if (tryDowngrade || options.HttpVersion == HttpVersion.Version11) 140&& (options.HttpVersion == HttpVersion.Version11 || options.HttpVersionPolicy == HttpVersionPolicy.RequestVersionOrLower))