51 references to Http1AndHttp2
Aspire.Dashboard (2)
DashboardWebApplication.cs (2)
490AddEndpointConfiguration(initialValues, "OtlpHttp", otlpHttpAddress.ToString(), HttpProtocols.Http1AndHttp2, requiredClientCertificate: dashboardOptions.Otlp.AuthMode == OtlpAuthMode.ClientCertificate); 512AddEndpointConfiguration(initialValues, "OtlpGrpc", url!, HttpProtocols.Http1AndHttp2, requiredClientCertificate: dashboardOptions.Otlp.AuthMode == OtlpAuthMode.ClientCertificate);
Http2SampleApp (1)
Program.cs (1)
40listenOptions.Protocols = HttpProtocols.Http1AndHttp2;
Http3SampleApp (4)
Program.cs (4)
35listenOptions.Protocols = HttpProtocols.Http1AndHttp2; 78listenOptions.Protocols = HttpProtocols.Http1AndHttp2; 93listenOptions.Protocols = HttpProtocols.Http1AndHttp2; 111listenOptions.Protocols = HttpProtocols.Http1AndHttp2;
InMemory.FunctionalTests (7)
HttpProtocolSelectionTests.cs (1)
28return TestSuccess(HttpProtocols.Http1AndHttp2, "GET / HTTP/1.1\r\nHost:\r\n\r\n", "HTTP/1.1 200 OK");
HttpsConnectionMiddlewareTests.cs (6)
500[InlineData(HttpProtocols.Http1AndHttp2)] // Make sure Http/1.1 doesn't regress with Http/2 enabled. 577[InlineData(HttpProtocols.Http1AndHttp2)] // Make sure turning on Http/2 doesn't regress HTTP/1 1382[InlineData(HttpProtocols.Http1AndHttp2)] 1422var middleware = CreateMiddleware(httpConnectionAdapterOptions, HttpProtocols.Http1AndHttp2); 1436var middleware = CreateMiddleware(httpConnectionAdapterOptions, HttpProtocols.Http1AndHttp2); 1438Assert.Equal(HttpProtocols.Http1AndHttp2, middleware._httpProtocols);
Interop.FunctionalTests (4)
Http2WebSocketInteropTests.cs (4)
30new object[] { "http", "1.1", HttpVersionPolicy.RequestVersionOrHigher, HttpProtocols.Http1AndHttp2, "HTTP/1.1" }, // No TLS/APLN, Can't upgrade 31new object[] { "http", "2.0", HttpVersionPolicy.RequestVersionOrLower, HttpProtocols.Http1AndHttp2, "HTTP/1.1" }, // No TLS/APLN, Downgrade 38list.Add(new object[] { "https", "1.1", HttpVersionPolicy.RequestVersionOrHigher, HttpProtocols.Http1AndHttp2, "HTTP/2" }); // Upgrade 39list.Add(new object[] { "https", "2.0", HttpVersionPolicy.RequestVersionOrLower, HttpProtocols.Http1AndHttp2, "HTTP/2" });
Microsoft.AspNetCore.Server.Kestrel.Core (2)
ListenOptions.cs (1)
19internal const HttpProtocols DefaultHttpProtocols = HttpProtocols.Http1AndHttp2;
Middleware\HttpsConnectionMiddleware.cs (1)
509else if (httpProtocols == HttpProtocols.Http1AndHttp2 && _isWindowsVersionIncompatibleWithHttp2)
Microsoft.AspNetCore.Server.Kestrel.Core.Tests (20)
KestrelServerTests.cs (2)
178[InlineData(HttpProtocols.Http1AndHttp2)] 487options.Protocols = HttpProtocols.Http1AndHttp2;
SniOptionsSelectorTests.cs (18)
69fallbackHttpProtocols: HttpProtocols.Http1AndHttp2, 126fallbackHttpProtocols: HttpProtocols.Http1AndHttp2, 172fallbackHttpProtocols: HttpProtocols.Http1AndHttp2, 221fallbackHttpProtocols: HttpProtocols.Http1AndHttp2, 284fallbackHttpProtocols: HttpProtocols.Http1AndHttp2, 329fallbackHttpProtocols: HttpProtocols.Http1AndHttp2, 342fallbackHttpProtocols: HttpProtocols.Http1AndHttp2, 377fallbackHttpProtocols: HttpProtocols.Http1AndHttp2, 403fallbackHttpProtocols: HttpProtocols.Http1AndHttp2, 440fallbackHttpProtocols: HttpProtocols.Http1AndHttp2, 483fallbackHttpProtocols: HttpProtocols.Http1AndHttp2, 519fallbackHttpProtocols: HttpProtocols.Http1AndHttp2, 542fallbackHttpProtocols: HttpProtocols.Http1AndHttp2, 570fallbackHttpProtocols: HttpProtocols.Http1AndHttp2, 696fallbackHttpProtocols: HttpProtocols.Http1AndHttp2, 727fallbackHttpProtocols: HttpProtocols.Http1AndHttp2, 757fallbackHttpProtocols: HttpProtocols.Http1AndHttp2, 792fallbackHttpProtocols: HttpProtocols.Http1AndHttp2,
Microsoft.AspNetCore.Server.Kestrel.Tests (5)
KestrelConfigurationLoaderTests.cs (5)
1020[InlineData("http1AndHttp2", HttpProtocols.Http1AndHttp2)] // Gracefully falls back to HTTP/1 1029[InlineData("http1AndHttp2", HttpProtocols.Http1AndHttp2)] 1038[InlineData("http1AndHttp2", HttpProtocols.Http1AndHttp2)] 1099[InlineData("http1AndHttp2", HttpProtocols.Http1AndHttp2)] // Gracefully falls back to HTTP/1 1108[InlineData("http1AndHttp2", HttpProtocols.Http1AndHttp2)]
Microsoft.AspNetCore.SignalR.Client.FunctionalTests (3)
HubConnectionTests.cs (3)
1868o2.Protocols = Server.Kestrel.Core.HttpProtocols.Http1AndHttp2; 2368o2.Protocols = Server.Kestrel.Core.HttpProtocols.Http1AndHttp2; 2464o2.Protocols = Server.Kestrel.Core.HttpProtocols.Http1AndHttp2;
Sockets.BindTests (1)
src\Servers\Kestrel\test\BindTests\AddressRegistrationTests.cs (1)
894[InlineData("http1AndHttp2", HttpProtocols.Http1AndHttp2)]
Sockets.FunctionalTests (1)
src\Servers\Kestrel\test\FunctionalTests\Http2\HandshakeTests.cs (1)
82listenOptions.Protocols = HttpProtocols.Http1AndHttp2;
WebTransportInteractiveSampleApp (1)
Program.cs (1)
28listenOptions.Protocols = HttpProtocols.Http1AndHttp2;