5 implementations of IsUpgradableRequest
Microsoft.AspNetCore.HttpLogging (1)
UpgradeFeatureLoggingDecorator.cs (1)
29public bool IsUpgradableRequest => _innerUpgradeFeature.IsUpgradableRequest;
Microsoft.AspNetCore.Server.HttpSys (1)
RequestProcessing\RequestContext.FeatureCollection.cs (1)
547bool IHttpUpgradeFeature.IsUpgradableRequest => IsUpgradableRequest;
Microsoft.AspNetCore.Server.IIS (1)
Core\IISHttpContext.FeatureCollection.cs (1)
273bool IHttpUpgradeFeature.IsUpgradableRequest => !RequestCanHaveBody && HttpVersion == System.Net.HttpVersion.Version11;
Microsoft.AspNetCore.Server.Kestrel.Core (1)
Internal\Http\HttpProtocol.FeatureCollection.cs (1)
150bool IHttpUpgradeFeature.IsUpgradableRequest => IsUpgradableRequest;
Microsoft.AspNetCore.TestHost (1)
UpgradeFeature.cs (1)
10public bool IsUpgradableRequest => false;
36 references to IsUpgradableRequest
InMemory.FunctionalTests (10)
ConnectionLimitTests.cs (1)
60if (feature.IsUpgradableRequest)
EventSourceTests.cs (1)
48if (upgradeFeature.IsUpgradableRequest)
KestrelMetricsTests.cs (1)
522if (upgradeFeature.IsUpgradableRequest)
UpgradeTests.cs (7)
167Assert.False(feature.IsUpgradableRequest); 173Assert.True(feature.IsUpgradableRequest); 198Assert.True(feature.IsUpgradableRequest); 238Assert.False(feature.IsUpgradableRequest); 246Assert.True(feature.IsUpgradableRequest); 274Assert.False(feature.IsUpgradableRequest); 311if (feature.IsUpgradableRequest)
InProcessWebSite (2)
src\Servers\IIS\IIS\test\testassets\InProcessWebSite\Startup.WebSockets.cs (2)
30Assert.False(upgradeFeature.IsUpgradableRequest); 40Assert.True(upgradeFeature.IsUpgradableRequest);
Microsoft.AspNetCore.Http.Features (1)
IHttpUpgradeFeature.cs (1)
18/// and headers need to be set before this is invoked. Check <see cref="IsUpgradableRequest"/>
Microsoft.AspNetCore.HttpLogging (2)
HttpLoggingMiddleware.cs (1)
192if (originalUpgradeFeature != null && originalUpgradeFeature.IsUpgradableRequest)
UpgradeFeatureLoggingDecorator.cs (1)
29public bool IsUpgradableRequest => _innerUpgradeFeature.IsUpgradableRequest;
Microsoft.AspNetCore.HttpLogging.Tests (7)
HttpLoggingMiddlewareTests.cs (7)
1206upgradeFeatureMock.Setup(m => m.IsUpgradableRequest).Returns(true); 1256upgradeFeatureMock.Setup(m => m.IsUpgradableRequest).Returns(true); 1310upgradeFeatureMock.Setup(m => m.IsUpgradableRequest).Returns(true); 1353upgradeFeatureMock.Setup(m => m.IsUpgradableRequest).Returns(true); 1396upgradeFeatureMock.Setup(m => m.IsUpgradableRequest).Returns(isUpgradableRequest); 1431upgradeFeatureMock.Setup(m => m.IsUpgradableRequest).Returns(true); 1470upgradeFeatureMock.Setup(m => m.IsUpgradableRequest).Returns(true);
Microsoft.AspNetCore.Server.HttpSys.FunctionalTests (8)
Http2Tests.cs (1)
36Assert.False(feature.IsUpgradableRequest);
OpaqueUpgradeTests.cs (7)
115Assert.True(opaqueFeature.IsUpgradableRequest); 142Assert.True(opaqueFeature.IsUpgradableRequest); 175Assert.True(opaqueFeature.IsUpgradableRequest); 222Assert.True(opaqueFeature.IsUpgradableRequest); 264Assert.False(opaqueFeature.IsUpgradableRequest); 287Assert.False(opaqueFeature.IsUpgradableRequest); 314Assert.False(opaqueFeature.IsUpgradableRequest);
Microsoft.AspNetCore.Server.IIS (1)
Core\IISHttpContext.FeatureCollection.cs (1)
339if (!((IHttpUpgradeFeature)this).IsUpgradableRequest)
Microsoft.AspNetCore.Server.Kestrel.Core.Tests (2)
Http2\Http2HttpProtocolFeatureCollectionTests.cs (1)
44Assert.False(upgradeFeature.IsUpgradableRequest);
Http3\Http3HttpProtocolFeatureCollectionTests.cs (1)
44Assert.False(upgradeFeature.IsUpgradableRequest);
Microsoft.AspNetCore.TestHost.Tests (2)
TestClientTests.cs (1)
1030Assert.False(upgradeFeature.IsUpgradableRequest);
WebSocketClientTests.cs (1)
104Assert.False(upgradeFeature.IsUpgradableRequest);
Microsoft.AspNetCore.WebSockets (1)
WebSocketMiddleware.cs (1)
119else if (_upgradeFeature?.IsUpgradableRequest == true)