3 writes to Version
Microsoft.AspNetCore.TestHost (1)
ClientHandler.cs (1)
215response.Version = request.Version;
System.Net.Http (2)
System\Net\Http\SocketsHttpHandler\Http2Stream.cs (1)
139Version = HttpVersion.Version20,
System\Net\Http\SocketsHttpHandler\Http3RequestStream.cs (1)
1041Version = HttpVersion.Version30,
107 references to Version
HttpStress (2)
Program.cs (2)
101if (m.Version != expectedVersion) 103throw new Exception($"Expected response version {expectedVersion}, got {m.Version}");
IIS.FunctionalTests (13)
Http2TrailersResetTests.cs (10)
52Assert.Equal(HttpVersion.Version20, response.Version); 63Assert.Equal(HttpVersion.Version20, response.Version); 74Assert.Equal(HttpVersion.Version20, response.Version); 86Assert.Equal(HttpVersion.Version20, response.Version); 101Assert.Equal(HttpVersion.Version20, response.Version); 116Assert.Equal(HttpVersion.Version20, response.Version); 134Assert.Equal(HttpVersion.Version20, response.Version); 151Assert.Equal(HttpVersion.Version20, response.Version); 165Assert.Equal(HttpVersion.Version20, response.Version); 181Assert.Equal(HttpVersion.Version20, response.Version);
Http3Tests.cs (2)
53Assert.Equal(HttpVersion.Version30, response.Version); 77Assert.Equal(HttpVersion.Version30, response3.Version);
src\Servers\IIS\IIS\test\Common.FunctionalTests\Http2Tests.cs (1)
323Assert.Equal(HttpVersion.Version11, response.Version);
IISExpress.FunctionalTests (1)
src\Servers\IIS\IIS\test\Common.FunctionalTests\Http2Tests.cs (1)
323Assert.Equal(HttpVersion.Version11, response.Version);
Interop.FunctionalTests (26)
Http3\Http3RequestTests.cs (7)
259Assert.Equal(GetProtocol(protocol), response.Version); 310Assert.Equal(GetProtocol(protocol), response.Version); 438Assert.Equal(HttpVersion.Version30, response.Version); 739Assert.Equal(HttpVersion.Version30, response.Version); 920Assert.Equal(HttpVersion.Version20, response1.Version); 933Assert.Equal(HttpVersion.Version30, response2.Version); 949Assert.Equal(HttpVersion.Version30, response3.Version);
Http3\Http3TlsTests.cs (5)
64Assert.Equal(HttpVersion.Version30, response.Version); 110Assert.Equal(HttpVersion.Version30, response.Version); 152Assert.Equal(HttpVersion.Version30, response.Version); 330Assert.Equal(HttpVersion.Version30, response.Version); 495Assert.Equal(HttpVersion.Version30, response.Version);
HttpClientHttp2InteropTests.cs (14)
65Assert.Equal(HttpVersion.Version20, response.Version); 94Assert.Equal(HttpVersion.Version20, response.Version); 139Assert.Equal(HttpVersion.Version20, response.Version); 188Assert.Equal(HttpVersion.Version20, response.Version); 304Assert.Equal(HttpVersion.Version20, response.Version); 381Assert.Equal(HttpVersion.Version20, response.Version); 438Assert.Equal(HttpVersion.Version20, response.Version); 536Assert.Equal(HttpVersion.Version20, response.Version); 568Assert.Equal(HttpVersion.Version20, response.Version); 683Assert.Equal(HttpVersion.Version20, response.Version); 738Assert.Equal(HttpVersion.Version20, response.Version); 797Assert.Equal(HttpVersion.Version20, response.Version); 1636Assert.Equal(HttpVersion.Version20, response.Version); 1681Assert.Equal(HttpVersion.Version20, response.Version);
Microsoft.AspNetCore.Server.HttpSys.FunctionalTests (37)
Listener\ResponseBodyTests.cs (2)
44Assert.Equal(new Version(1, 1), response.Version); 93Assert.Equal(new Version(1, 1), response.Version);
Listener\ResponseHeaderTests.cs (3)
234Assert.Equal(new Version(1, 1), response.Version); 244Assert.Equal(new Version(1, 1), response.Version); 269Assert.Equal(new Version(1, 1), response.Version);
ResponseBodyTests.cs (13)
34Assert.Equal(new Version(1, 1), response.Version); 63Assert.Equal(new Version(1, 1), response.Version); 84Assert.Equal(new Version(1, 1), response.Version); 103Assert.Equal(new Version(1, 1), response.Version); 121Assert.Equal(new Version(1, 1), response.Version); 153Assert.Equal(new Version(1, 1), response.Version); 178Assert.Equal(new Version(1, 1), response.Version); 200Assert.Equal(new Version(1, 1), response.Version); 224Assert.Equal(new Version(1, 1), response.Version); 304Assert.Equal(new Version(1, 1), response.Version); 335Assert.Equal(new Version(1, 1), response.Version); 363Assert.Equal(new Version(1, 1), response.Version); 390Assert.Equal(new Version(1, 1), response.Version);
ResponseHeaderTests.cs (2)
176Assert.Equal(new Version(1, 1), response.Version); 203Assert.Equal(new Version(1, 1), response.Version);
ResponseSendFileTests.cs (1)
296Assert.Equal(new Version(1, 1), response.Version);
ResponseTests.cs (3)
36Assert.Equal(new Version(1, 1), response.Version); 55Assert.Equal(new Version(1, 1), response.Version); 75Assert.Equal(new Version(1, 1), response.Version);
ResponseTrailersTests.cs (13)
34Assert.Equal(HttpVersion.Version11, response.Version); 52Assert.Equal(HttpVersion.Version20, response.Version); 73Assert.Equal(HttpVersion.Version20, response.Version); 91Assert.Equal(HttpVersion.Version20, response.Version); 109Assert.Equal(HttpVersion.Version20, response.Version); 139Assert.Equal(HttpVersion.Version20, response.Version); 162Assert.Equal(HttpVersion.Version20, response.Version); 187Assert.Equal(HttpVersion.Version20, response.Version); 213Assert.Equal(HttpVersion.Version20, response.Version); 237Assert.Equal(HttpVersion.Version20, response.Version); 259Assert.Equal(HttpVersion.Version20, response.Version); 279Assert.Equal(HttpVersion.Version20, response.Version); 307Assert.Equal(HttpVersion.Version20, response.Version);
Microsoft.AspNetCore.Server.Kestrel.Transport.Quic.Tests (7)
WebHostTests.cs (7)
88Assert.Equal(HttpVersion.Version30, response.Version); 252Assert.Equal(HttpVersion.Version20, response1.Version); 266Assert.Equal(HttpVersion.Version30, response2.Version); 323Assert.Equal(HttpVersion.Version20, response1.Version); 336Assert.Equal(HttpVersion.Version20, response2.Version); 361Assert.Equal(HttpVersion.Version30, response1.Version); 373Assert.Equal(HttpVersion.Version11, response2.Version);
Microsoft.AspNetCore.TestHost.Tests (3)
TestClientTests.cs (3)
960Assert.Equal(new Version(1, 1), message.Version); 987Assert.Equal(new Version(2, 0), message.Version); 1014Assert.Equal(new Version(3, 0), message.Version);
Negotiate.Client (12)
Controllers\AuthTestController.cs (12)
38|| HasWrongProtocol(protocol, result.Version, out actionResult) 59|| HasWrongProtocol(protocol, result.Version, out actionResult)) 88|| HasWrongProtocol(Http11Protocol, result.Version, out actionResult) 111|| HasWrongProtocol(Http11Protocol, result.Version, out actionResult) 121|| HasWrongProtocol(Http11Protocol, result.Version, out actionResult) 144|| HasWrongProtocol(Http11Protocol, result.Version, out actionResult) 154|| HasWrongProtocol(Http11Protocol, result.Version, out actionResult) 177|| HasWrongProtocol(Http11Protocol, result.Version, out actionResult) 187|| HasWrongProtocol(Http11Protocol, result.Version, out actionResult) 207|| HasWrongProtocol(Http11Protocol, result.Version, out actionResult)) // HTTP/2 downgrades. 234|| HasWrongProtocol(Http11Protocol, result.Version, out actionResult) 244|| HasWrongProtocol(Http11Protocol, result.Version, out actionResult)) // HTTP/2 downgrades.
System.Net.Http (2)
System\Net\Http\DiagnosticsHandler.cs (1)
204activity.SetTag("network.protocol.version", DiagnosticsHelper.GetProtocolVersionString(response.Version));
System\Net\Http\Metrics\MetricsHandler.cs (1)
114tags.Add("network.protocol.version", DiagnosticsHelper.GetProtocolVersionString(response.Version));
System.Net.WebSockets.Client (4)
System\Net\WebSockets\WebSocketHandle.Managed.cs (4)
449Debug.Assert(response.Version == HttpVersion.Version11 || response.Version == HttpVersion.Version20); 451if (response.Version == HttpVersion.Version11) 465else if (response.Version == HttpVersion.Version20)