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