6 implementations of Protocol
Microsoft.AspNetCore.Hosting.Tests (1)
WebHostTests.cs (1)
1402public string Protocol { get; set; }
Microsoft.AspNetCore.Http (1)
Features\HttpRequestFeature.cs (1)
28public string Protocol { get; set; }
Microsoft.AspNetCore.Owin (1)
OwinFeatureCollection.cs (1)
75string IHttpRequestFeature.Protocol
Microsoft.AspNetCore.Server.HttpSys (1)
RequestProcessing\RequestContext.FeatureCollection.cs (1)
198string IHttpRequestFeature.Protocol
Microsoft.AspNetCore.Server.IIS (1)
Core\IISHttpContext.FeatureCollection.cs (1)
107string IHttpRequestFeature.Protocol
Microsoft.AspNetCore.Server.Kestrel.Core (1)
Internal\Http\HttpProtocol.FeatureCollection.cs (1)
22string IHttpRequestFeature.Protocol
4 writes to Protocol
Microsoft.AspNetCore.Http (1)
Internal\DefaultHttpRequest.cs (1)
130set { HttpRequestFeature.Protocol = value; }
Microsoft.AspNetCore.Owin (1)
OwinEnvironment.cs (1)
52{ OwinConstants.RequestProtocol, new FeatureMap<IHttpRequestFeature>(feature => feature.Protocol, () => string.Empty, (feature, value) => feature.Protocol = Convert.ToString(value, CultureInfo.InvariantCulture)) },
Microsoft.AspNetCore.Server.HttpSys.FunctionalTests (2)
RequestTests.cs (2)
97requestInfo.Protocol = "Custom/2.0"; 160requestInfo.Protocol = null;
9 references to Protocol
Microsoft.AspNetCore.Http (1)
Internal\DefaultHttpRequest.cs (1)
129get { return HttpRequestFeature.Protocol; }
Microsoft.AspNetCore.Http.Connections (1)
Internal\HttpConnectionDispatcher.cs (1)
718Protocol = existingRequestFeature.Protocol,
Microsoft.AspNetCore.Owin (1)
OwinEnvironment.cs (1)
52{ OwinConstants.RequestProtocol, new FeatureMap<IHttpRequestFeature>(feature => feature.Protocol, () => string.Empty, (feature, value) => feature.Protocol = Convert.ToString(value, CultureInfo.InvariantCulture)) },
Microsoft.AspNetCore.Rewrite (1)
PatternSegments\ServerProtocolSegment.cs (1)
12return context.HttpContext.Features.Get<IHttpRequestFeature>()?.Protocol;
Microsoft.AspNetCore.Server.HttpSys.FunctionalTests (3)
RequestTests.cs (3)
39Assert.Equal("HTTP/1.1", requestInfo.Protocol); 98Assert.Equal("Custom/2.0", requestInfo.Protocol); 161Assert.Null(requestInfo.Protocol);
Microsoft.AspNetCore.TestHost.Tests (2)
ClientHandlerTests.cs (2)
27Assert.Equal(HttpProtocol.Http11, features.Get<IHttpRequestFeature>().Protocol); 76Assert.Equal(HttpProtocol.Http11, features.Get<IHttpRequestFeature>().Protocol);