58 references to Http1
Http2SampleApp (1)
Program.cs (1)
34listenOptions.Protocols = HttpProtocols.Http1;
InMemory.FunctionalTests (14)
HttpProtocolSelectionTests.cs (1)
34return TestSuccess(HttpProtocols.Http1, "GET / HTTP/1.1\r\nHost:\r\n\r\n", "HTTP/1.1 200 OK");
HttpsConnectionMiddlewareTests.cs (10)
499[InlineData(HttpProtocols.Http1)] 541listenOptions.Protocols = HttpProtocols.Http1; 576[InlineData(HttpProtocols.Http1)] 626listenOptions.Protocols = HttpProtocols.Http1; 759listenOptions.Protocols = HttpProtocols.Http1; 883listenOptions.Protocols = HttpProtocols.Http1; 1020listenOptions.Protocols = HttpProtocols.Http1; 1067listenOptions.Protocols = HttpProtocols.Http1; 1380[InlineData(HttpProtocols.Http1)] 1424Assert.Equal(HttpProtocols.Http1, middleware._httpProtocols);
ResponseTests.cs (2)
4478new ListenOptions(new IPEndPoint(IPAddress.Loopback, 0)) { Protocols = HttpProtocols.Http1 })) 4507Protocols = HttpProtocols.Http1
src\Servers\Kestrel\shared\test\TestContextFactory.cs (1)
61HttpProtocols.Http1,
Interop.FunctionalTests (3)
Http2WebSocketInteropTests.cs (3)
28new object[] { "http", "1.1", HttpVersionPolicy.RequestVersionExact, HttpProtocols.Http1, "HTTP/1.1" }, 36list.Add(new object[] { "https", "1.1", HttpVersionPolicy.RequestVersionExact, HttpProtocols.Http1, "HTTP/1.1" }); 40list.Add(new object[] { "https", "2.0", HttpVersionPolicy.RequestVersionOrLower, HttpProtocols.Http1, "HTTP/1.1" }); // Downgrade
Kestrel.SampleApp (1)
Startup.cs (1)
108listenOptions.Protocols = Microsoft.AspNetCore.Server.Kestrel.Core.HttpProtocols.Http1;
Microsoft.AspNetCore.Server.Kestrel.Core (12)
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 (4)
68case HttpProtocols.Http1: 219var http1Enabled = _context.Protocols.HasFlag(HttpProtocols.Http1); 254return HttpProtocols.Http1; 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)
137var hasHttp1 = options.Protocols.HasFlag(HttpProtocols.Http1);
Middleware\HttpsConnectionMiddleware.cs (2)
369if ((httpProtocols & HttpProtocols.Http1) != 0) 512return HttpProtocols.Http1;
Microsoft.AspNetCore.Server.Kestrel.Core.Tests (12)
KestrelServerOptionsTests.cs (4)
35opt.Protocols = HttpProtocols.Http1; 41Assert.Equal(HttpProtocols.Http1, opt.Protocols); 43Assert.Equal(HttpProtocols.Http1, options.CodeBackedListenOptions[1].Protocols); 47Assert.Equal(HttpProtocols.Http1, opt.Protocols);
KestrelServerTests.cs (2)
159[InlineData(HttpProtocols.Http1)] 169[InlineData(HttpProtocols.Http1 | HttpProtocols.Http3)]
ListenOptionsTests.cs (1)
60localhostListenOptions.Protocols = HttpProtocols.Http1;
SniOptionsSelectorTests.cs (4)
597fallbackHttpProtocols: HttpProtocols.Http1, 619Protocols = HttpProtocols.Http1, 660fallbackHttpProtocols: HttpProtocols.Http1, 668Assert.Equal(HttpProtocols.Http1, httpProtocolsFeature.HttpProtocols);
src\Servers\Kestrel\shared\test\TestContextFactory.cs (1)
61HttpProtocols.Http1,
Microsoft.AspNetCore.Server.Kestrel.Microbenchmarks (1)
src\Servers\Kestrel\shared\test\TestContextFactory.cs (1)
61HttpProtocols.Http1,
Microsoft.AspNetCore.Server.Kestrel.Tests (11)
ConfigurationReaderTests.cs (1)
332Assert.Equal(HttpProtocols.Http1, config.Protocols);
KestrelConfigurationLoaderTests.cs (10)
158opt.Protocols = HttpProtocols.Http1; 183Assert.Equal(HttpProtocols.Http1, opt.ListenOptions.Protocols); 188Assert.Equal(HttpProtocols.Http1, opt.Protocols); 808new KeyValuePair<string, string>("Endpoints:End1:Sni:Protocols", HttpProtocols.Http1.ToString()), 1018[InlineData("http1", HttpProtocols.Http1)] 1027[InlineData("http1", HttpProtocols.Http1)] 1036[InlineData("http1", HttpProtocols.Http1)] 1097[InlineData("http1", HttpProtocols.Http1)] 1106[InlineData("http1", HttpProtocols.Http1)] 1534Assert.Equal(HttpProtocols.Http1, startEndpoint.Protocols);
Microsoft.AspNetCore.Server.Kestrel.Transport.Quic.Tests (1)
WebHostTests.cs (1)
116listenOptions.Protocols = Core.HttpProtocols.Http1;
Microsoft.AspNetCore.SignalR.Client.FunctionalTests (1)
HubConnectionTests.cs (1)
1808o2.Protocols = Server.Kestrel.Core.HttpProtocols.Http1;
Sockets.BindTests (1)
src\Servers\Kestrel\test\BindTests\AddressRegistrationTests.cs (1)
892[InlineData("http1", HttpProtocols.Http1)]