6 implementations of Headers
Microsoft.AspNetCore.Hosting.Tests (1)
WebHostTests.cs (1)
1390public IHeaderDictionary Headers { get; set; }
Microsoft.AspNetCore.Http (1)
Features\HttpRequestFeature.cs (1)
49public IHeaderDictionary Headers { get; set; }
Microsoft.AspNetCore.Owin (1)
OwinFeatureCollection.cs (1)
117IHeaderDictionary IHttpRequestFeature.Headers
Microsoft.AspNetCore.Server.HttpSys (1)
RequestProcessing\RequestContext.FeatureCollection.cs (1)
174IHeaderDictionary IHttpRequestFeature.Headers
Microsoft.AspNetCore.Server.IIS (1)
Core\IISHttpContext.FeatureCollection.cs (1)
149IHeaderDictionary IHttpRequestFeature.Headers
Microsoft.AspNetCore.Server.Kestrel.Core (1)
Internal\Http\HttpProtocol.FeatureCollection.cs (1)
76IHeaderDictionary IHttpRequestFeature.Headers
6 writes to Headers
InMemory.FunctionalTests (1)
RequestTests.cs (1)
1313requestFeature.Headers = new HttpRequestHeaders();
InProcessWebSite (1)
src\Servers\IIS\IIS\test\testassets\InProcessWebSite\Startup.cs (1)
301ctx.Features.Get<IHttpRequestFeature>().Headers = headers;
Microsoft.AspNetCore.Http.Tests (1)
Internal\DefaultHttpRequestTests.cs (1)
349context.Features.Get<IHttpRequestFeature>().Headers = headers;
Microsoft.AspNetCore.Owin (1)
OwinEnvironment.cs (1)
59{ OwinConstants.RequestHeaders, new FeatureMap<IHttpRequestFeature>(feature => Utilities.MakeDictionaryStringArray(feature.Headers), (feature, value) => feature.Headers = Utilities.MakeHeaderDictionary((IDictionary<string, string[]>)value)) },
Microsoft.AspNetCore.Server.HttpSys.FunctionalTests (2)
RequestTests.cs (2)
85requestInfo.Headers = customHeaders; 148requestInfo.Headers = null;
18 references to Headers
InMemory.FunctionalTests (2)
RequestTests.cs (2)
1312originalRequestHeaders = requestFeature.Headers; 1318Assert.Same(originalRequestHeaders, requestFeature.Headers);
InProcessWebSite (1)
src\Servers\IIS\IIS\test\testassets\InProcessWebSite\Startup.cs (1)
302Assert.Same(headers, ctx.Features.Get<IHttpRequestFeature>().Headers);
Microsoft.AspNetCore.Http (5)
Features\RequestCookiesFeature.cs (3)
60var headers = HttpRequestFeature.Headers; 79HttpRequestFeature.Headers.Cookie = default; 89HttpRequestFeature.Headers.Cookie = _original;
Internal\DefaultHttpRequest.cs (1)
135get { return HttpRequestFeature.Headers; }
Internal\DefaultWebSocketManager.cs (1)
57return HttpRequestFeature.Headers.GetCommaSeparatedValues(HeaderNames.WebSocketSubProtocols);
Microsoft.AspNetCore.Http.Connections (2)
Internal\HttpConnectionDispatcher.cs (2)
726var requestHeaders = new Dictionary<string, StringValues>(existingRequestFeature.Headers.Count, StringComparer.OrdinalIgnoreCase); 727foreach (var header in existingRequestFeature.Headers)
Microsoft.AspNetCore.Owin (1)
OwinEnvironment.cs (1)
59{ OwinConstants.RequestHeaders, new FeatureMap<IHttpRequestFeature>(feature => Utilities.MakeDictionaryStringArray(feature.Headers), (feature, value) => feature.Headers = Utilities.MakeHeaderDictionary((IDictionary<string, string[]>)value)) },
Microsoft.AspNetCore.Server.HttpSys.FunctionalTests (3)
RequestTests.cs (3)
33Assert.NotNull(requestInfo.Headers); 86Assert.Same(customHeaders, requestInfo.Headers); 149Assert.Null(requestInfo.Headers);
Microsoft.AspNetCore.TestHost.Tests (4)
ClientHandlerTests.cs (4)
32Assert.NotNull(features.Get<IHttpRequestFeature>().Headers); 37Assert.Equal("example.com", features.Get<IHttpRequestFeature>().Headers["host"]); 83Assert.NotNull(features.Get<IHttpRequestFeature>().Headers); 88Assert.Equal("example.com", features.Get<IHttpRequestFeature>().Headers["host"]);