6 implementations of Scheme
Microsoft.AspNetCore.Hosting.Tests (1)
WebHostTests.cs (1)
1410public string Scheme { get; set; }
Microsoft.AspNetCore.Http (1)
Features\HttpRequestFeature.cs (1)
31public string Scheme { get; set; }
Microsoft.AspNetCore.Owin (1)
OwinFeatureCollection.cs (1)
81string IHttpRequestFeature.Scheme
Microsoft.AspNetCore.Server.HttpSys (1)
RequestProcessing\RequestContext.FeatureCollection.cs (1)
228string IHttpRequestFeature.Scheme
Microsoft.AspNetCore.Server.IIS (1)
Core\IISHttpContext.FeatureCollection.cs (1)
113string IHttpRequestFeature.Scheme
Microsoft.AspNetCore.Server.Kestrel.Core (1)
Internal\Http\HttpProtocol.FeatureCollection.cs (1)
28string IHttpRequestFeature.Scheme
4 writes to Scheme
Microsoft.AspNetCore.Http (1)
Internal\DefaultHttpRequest.cs (1)
106set { HttpRequestFeature.Scheme = value; }
Microsoft.AspNetCore.Owin (1)
OwinEnvironment.cs (1)
53{ OwinConstants.RequestScheme, new FeatureMap<IHttpRequestFeature>(feature => feature.Scheme, () => string.Empty, (feature, value) => feature.Scheme = Convert.ToString(value, CultureInfo.InvariantCulture)) },
Microsoft.AspNetCore.Server.HttpSys.FunctionalTests (2)
RequestTests.cs (2)
87requestInfo.Scheme = "abcd"; 150requestInfo.Scheme = null;
11 references to Scheme
Microsoft.AspNetCore.Http (1)
Internal\DefaultHttpRequest.cs (1)
105get { return HttpRequestFeature.Scheme; }
Microsoft.AspNetCore.Http.Connections (1)
Internal\HttpConnectionDispatcher.cs (1)
720Scheme = existingRequestFeature.Scheme,
Microsoft.AspNetCore.Owin (2)
OwinEnvironment.cs (1)
53{ OwinConstants.RequestScheme, new FeatureMap<IHttpRequestFeature>(feature => feature.Scheme, () => string.Empty, (feature, value) => feature.Scheme = Convert.ToString(value, CultureInfo.InvariantCulture)) },
OwinFeatureCollection.cs (1)
245if (string.Equals("https", ((IHttpRequestFeature)this).Scheme, StringComparison.OrdinalIgnoreCase)
Microsoft.AspNetCore.Server.HttpSys.FunctionalTests (4)
RequestTests.cs (4)
34Assert.Equal("http", requestInfo.Scheme); 88Assert.Equal("abcd", requestInfo.Scheme); 151Assert.Null(requestInfo.Scheme); 217Assert.Equal("http", requestInfo.Scheme);
Microsoft.AspNetCore.Server.Kestrel.Core.Tests (1)
Http1\Http1ConnectionTests.cs (1)
160Assert.Equal("http", ((IFeatureCollection)_http1Connection).Get<IHttpRequestFeature>().Scheme);
Microsoft.AspNetCore.TestHost.Tests (2)
ClientHandlerTests.cs (2)
29Assert.Equal("https", features.Get<IHttpRequestFeature>().Scheme); 78Assert.Equal("https", features.Get<IHttpRequestFeature>().Scheme);