79 references to Http2
Aspire.Dashboard (1)
DashboardWebApplication.cs (1)
486AddEndpointConfiguration(initialValues, "OtlpGrpc", otlpGrpcAddress.ToString(), HttpProtocols.Http2, requiredClientCertificate: dashboardOptions.Otlp.AuthMode == OtlpAuthMode.ClientCertificate);
Aspire.Dashboard.Tests (1)
Integration\DashboardClientAuthTests.cs (1)
101options.Protocols = HttpProtocols.Http2;
Aspire.Hosting (3)
Dashboard\DashboardServiceHost.cs (1)
164options.Protocols = HttpProtocols.Http2;
ProjectResourceBuilderExtensions.cs (2)
360var isHttp2ConfiguredInKestrelEndpointDefaults = config["Kestrel:EndpointDefaults:Protocols"] == nameof(HttpProtocols.Http2); 365e.Transport = bindingLevelProtocols == nameof(HttpProtocols.Http2) ? "http2" : e.Transport;
Http2SampleApp (1)
Program.cs (1)
66listenOptions.Protocols = HttpProtocols.Http2;
InMemory.FunctionalTests (14)
EventSourceTests.cs (1)
159listenOptions.Protocols = HttpProtocols.Http2;
Http2\Http2EndToEndTests.cs (1)
43listenOptions.Protocols = HttpProtocols.Http2;
Http2\TlsTests.cs (1)
52listenOptions.Protocols = HttpProtocols.Http2;
HttpProtocolSelectionTests.cs (1)
54return TestSuccess(HttpProtocols.Http2,
HttpsConnectionMiddlewareTests.cs (4)
1381[InlineData(HttpProtocols.Http2)] 1407httpProtocols.HasFlag(HttpProtocols.Http2) ? 1451Assert.Throws<NotSupportedException>(() => CreateMiddleware(httpConnectionAdapterOptions, HttpProtocols.Http2)); 1465CreateMiddleware(httpConnectionAdapterOptions, HttpProtocols.Http2);
KestrelMetricsTests.cs (5)
549listenOptions.Protocols = HttpProtocols.Http2; 627listenOptions.Protocols = HttpProtocols.Http2; 697listenOptions.Protocols = HttpProtocols.Http2; 782listenOptions.Protocols = HttpProtocols.Http2; 866listenOptions.Protocols = HttpProtocols.Http2;
src\Servers\Kestrel\shared\test\TestContextFactory.cs (1)
156protocols: HttpProtocols.Http2,
Interop.FunctionalTests (27)
H2SpecTests.cs (1)
38listenOptions.Protocols = HttpProtocols.Http2;
Http2\Http2RequestTests.cs (5)
35protocol: HttpProtocols.Http2, 108listenOptions.Protocols = HttpProtocols.Http2; 174protocol: HttpProtocols.Http2, 202var builder = CreateHostBuilder(c => Task.CompletedTask, protocol: HttpProtocols.Http2, plaintext: true); 258protocol: HttpProtocols.Http2,
Http2WebSocketInteropTests.cs (3)
29new object[] { "http", "2.0", HttpVersionPolicy.RequestVersionExact, HttpProtocols.Http2, "HTTP/2" }, 37list.Add(new object[] { "https", "2.0", HttpVersionPolicy.RequestVersionExact, HttpProtocols.Http2, "HTTP/2" }); 104ConfigureKestrel(webHostBuilder, "https", HttpProtocols.Http2);
Http3\Http3RequestTests.cs (15)
123[InlineData(HttpProtocols.Http2)] 230[InlineData(HttpProtocols.Http2, 11)] 231[InlineData(HttpProtocols.Http2, 1024)] 275[InlineData(HttpProtocols.Http2)] 320[InlineData(HttpProtocols.Http2)] 450[InlineData(HttpProtocols.Http2)] 532[InlineData(HttpProtocols.Http2)] 650[InlineData(HttpProtocols.Http2)] 751case HttpProtocols.Http2: 963[InlineData(HttpProtocols.Http2)] 1065[InlineData(HttpProtocols.Http2)] 1159[InlineData(HttpProtocols.Http2)] 1286[InlineData(HttpProtocols.Http2)] 1986[InlineData(HttpProtocols.Http2)] 2107[InlineData(HttpProtocols.Http2)]
HttpClientHttp2InteropTests.cs (3)
1608listenOptions.Protocols = HttpProtocols.Http2; 1653listenOptions.Protocols = HttpProtocols.Http2; 1712listenOptions.Protocols = HttpProtocols.Http2;
InteropWebsite (1)
Program.cs (1)
62listenOptions.Protocols = HttpProtocols.Http2;
Microsoft.AspNetCore.Server.Kestrel.Core (11)
HttpProtocols.cs (4)
28/// The <see cref="Http1"/> and <see cref="Http2"/> protocol versions. 30Http1AndHttp2 = Http1 | Http2, 38/// The <see cref="Http1"/>, <see cref="Http2"/>, and <see cref="Http3"/> protocol versions. 40Http1AndHttp2AndHttp3 = Http1 | Http2 | Http3
Internal\HttpConnection.cs (3)
74case HttpProtocols.Http2: 220var http2Enabled = _context.Protocols.HasFlag(HttpProtocols.Http2); 257return http2Enabled && (!hasTls || Http2Id.SequenceEqual(applicationProtocol.Span)) ? HttpProtocols.Http2 : HttpProtocols.Http1;
Internal\Infrastructure\HttpUtilities.cs (1)
604var hasHttp1OrHttp2 = protocols.HasFlag(HttpProtocols.Http1) || protocols.HasFlag(HttpProtocols.Http2);
Internal\KestrelServerImpl.cs (1)
138var hasHttp2 = options.Protocols.HasFlag(HttpProtocols.Http2);
Middleware\HttpsConnectionMiddleware.cs (2)
362if ((httpProtocols & HttpProtocols.Http2) != 0) 498if (httpProtocols == HttpProtocols.Http2)
Microsoft.AspNetCore.Server.Kestrel.Core.Tests (6)
KestrelServerOptionsTests.cs (4)
48opt.Protocols = HttpProtocols.Http2; // Can be overriden 50Assert.Equal(HttpProtocols.Http2, options.CodeBackedListenOptions[2].Protocols); 54opt.Protocols = HttpProtocols.Http2; 56Assert.Equal(HttpProtocols.Http2, options.CodeBackedListenOptions[3].Protocols);
KestrelServerTests.cs (1)
160[InlineData(HttpProtocols.Http2)]
src\Servers\Kestrel\shared\test\TestContextFactory.cs (1)
156protocols: HttpProtocols.Http2,
Microsoft.AspNetCore.Server.Kestrel.Microbenchmarks (1)
src\Servers\Kestrel\shared\test\TestContextFactory.cs (1)
156protocols: HttpProtocols.Http2,
Microsoft.AspNetCore.Server.Kestrel.Tests (3)
KestrelConfigurationLoaderTests.cs (3)
1028[InlineData("http2", HttpProtocols.Http2)] 1037[InlineData("http2", HttpProtocols.Http2)] 1107[InlineData("http2", HttpProtocols.Http2)]
Microsoft.AspNetCore.SignalR.Client.FunctionalTests (4)
HubConnectionTests.cs (4)
1750o2.Protocols = Server.Kestrel.Core.HttpProtocols.Http2; 1911o2.Protocols = Server.Kestrel.Core.HttpProtocols.Http2; 2421o2.Protocols = Server.Kestrel.Core.HttpProtocols.Http2; 2514o2.Protocols = Server.Kestrel.Core.HttpProtocols.Http2;
Sockets.BindTests (1)
src\Servers\Kestrel\test\BindTests\AddressRegistrationTests.cs (1)
893[InlineData("http2", HttpProtocols.Http2)]
Sockets.FunctionalTests (5)
src\Servers\Kestrel\test\FunctionalTests\Http2\HandshakeTests.cs (2)
56listenOptions.Protocols = HttpProtocols.Http2; 110listenOptions.Protocols = HttpProtocols.Http2;
src\Servers\Kestrel\test\FunctionalTests\Http2\ShutdownTests.cs (3)
80listenOptions.Protocols = HttpProtocols.Http2; 137listenOptions.Protocols = HttpProtocols.Http2; 188listenOptions.Protocols = HttpProtocols.Http2;