14 references to RequestVersionOrLower
Interop.FunctionalTests (3)
Http2WebSocketInteropTests.cs (3)
31
new object[] { "http", "2.0", HttpVersionPolicy.
RequestVersionOrLower
, HttpProtocols.Http1AndHttp2, "HTTP/1.1" }, // No TLS/APLN, Downgrade
39
list.Add(new object[] { "https", "2.0", HttpVersionPolicy.
RequestVersionOrLower
, HttpProtocols.Http1AndHttp2, "HTTP/2" });
40
list.Add(new object[] { "https", "2.0", HttpVersionPolicy.
RequestVersionOrLower
, HttpProtocols.Http1, "HTTP/1.1" }); // Downgrade
System.Net.Http (7)
System\Net\Http\HttpRequestMessage.cs (1)
16
internal static HttpVersionPolicy DefaultVersionPolicy => HttpVersionPolicy.
RequestVersionOrLower
;
System\Net\Http\SocketsHttpHandler\ConnectionPool\HttpConnectionPool.cs (5)
446
if (request.Version.Major >= 3 && request.VersionPolicy != HttpVersionPolicy.
RequestVersionOrLower
)
454
(request.VersionPolicy != HttpVersionPolicy.
RequestVersionOrLower
|| IsSecure)) // prefer HTTP/1.1 if connection is not secured and downgrade is possible
483
if (request.Version.Major >= 2 && request.VersionPolicy != HttpVersionPolicy.
RequestVersionOrLower
)
535
if (request.VersionPolicy != HttpVersionPolicy.
RequestVersionOrLower
)
725
if (request.Version.Major >= 2 && request.VersionPolicy != HttpVersionPolicy.
RequestVersionOrLower
)
System\Net\Http\SocketsHttpHandler\ConnectionPool\HttpConnectionPool.Http3.cs (1)
621
if (request.Version.Major >= 3 && request.VersionPolicy != HttpVersionPolicy.
RequestVersionOrLower
)
System.Net.WebSockets.Client (4)
System\Net\WebSockets\ClientWebSocketOptions.cs (1)
31
private HttpVersionPolicy _versionPolicy = HttpVersionPolicy.
RequestVersionOrLower
;
System\Net\WebSockets\WebSocketHandle.Managed.cs (3)
71
bool tryDowngrade = uri.Scheme == UriScheme.Ws && (options.HttpVersion == HttpVersion.Version11 || options.HttpVersionPolicy == HttpVersionPolicy.
RequestVersionOrLower
);
83
if (options.HttpVersion > HttpVersion.Version20 && options.HttpVersionPolicy != HttpVersionPolicy.
RequestVersionOrLower
)
140
&& (options.HttpVersion == HttpVersion.Version11 || options.HttpVersionPolicy == HttpVersionPolicy.
RequestVersionOrLower
))