4 writes to Protocols
Aspire.Dashboard.Tests (1)
Integration\DashboardClientAuthTests.cs (1)
98options.Protocols = HttpProtocols.Http2;
Aspire.Hosting (1)
Dashboard\DashboardServiceHost.cs (1)
168options.Protocols = HttpProtocols.Http2;
Microsoft.AspNetCore.Server.Kestrel.Core (2)
KestrelConfigurationLoader.cs (2)
245listenOptions.Protocols = defaults.Protocols.Value; 374listenOptions.Protocols = endpoint.Protocols.Value;
15 references to Protocols
Aspire.Dashboard (2)
DashboardWebApplication.cs (2)
662""", name, address, string.Join(", ", connectionTypes), endpointConfiguration.IsHttps, endpointConfiguration.ListenOptions.Protocols); 664if (!endpointConfiguration.IsHttps && connectionTypes.Contains(ConnectionType.Frontend) && endpointConfiguration.ListenOptions.Protocols == HttpProtocols.Http2)
Microsoft.AspNetCore.Server.Kestrel.Core (13)
Internal\KestrelServerImpl.cs (6)
141var hasHttp1 = options.Protocols.HasFlag(HttpProtocols.Http1); 142var hasHttp2 = options.Protocols.HasFlag(HttpProtocols.Http2); 143var hasHttp3 = options.Protocols.HasFlag(HttpProtocols.Http3); 189|| options.Protocols == HttpProtocols.None) // TODO a test fails because it doesn't throw an exception in the right place 197options.UseHttpServer(ServiceContext, application, options.Protocols, addAltSvcHeader); 216options.UseHttp3Server(ServiceContext, application, options.Protocols, addAltSvcHeader);
KestrelServerOptions.cs (2)
372writer.WriteString(nameof(listenOptions.Protocols), listenOptions.Protocols.ToString());
ListenOptions.cs (2)
110/// Tracks whether <see cref="Protocols"/> has been set explicitly so that we can determine whether 119/// The "Alt-Svc" header is automatically included with a response if <see cref="Protocols"/> has either
ListenOptionsHttpsExtensions.cs (2)
206var middleware = new HttpsConnectionMiddleware(next, httpsOptions, listenOptions.Protocols, loggerFactory, metrics); 271callbackOptions.HttpProtocols = listenOptions.Protocols;
TlsConfigurationLoader.cs (1)
113httpsOptions, listenOptions.Protocols, _httpsLogger);