12 implementations of Headers
Microsoft.AspNetCore.Hosting.Tests (1)
WebHostTests.cs (1)
1390public IHeaderDictionary Headers { get; set; }
Microsoft.AspNetCore.Http (1)
Features\HttpResponseFeature.cs (1)
28public IHeaderDictionary Headers { get; set; }
Microsoft.AspNetCore.Http.Extensions.Tests (2)
RequestDelegateFactoryTests.cs (1)
3716public IHeaderDictionary Headers { get; set; } = new HeaderDictionary();
ResponseExtensionTests.cs (1)
57public IHeaderDictionary Headers { get; set; }
Microsoft.AspNetCore.Http.Tests (3)
ApplicationBuilderTests.cs (1)
180public IHeaderDictionary Headers { get; set; }
DefaultHttpContextTests.cs (1)
432public IHeaderDictionary Headers { get; set; } = new HeaderDictionary();
Internal\DefaultHttpResponseTests.cs (1)
196public IHeaderDictionary Headers { get; set; }
Microsoft.AspNetCore.Owin (1)
OwinFeatureCollection.cs (1)
147IHeaderDictionary IHttpResponseFeature.Headers
Microsoft.AspNetCore.Server.HttpSys (1)
RequestProcessing\RequestContext.FeatureCollection.cs (1)
445IHeaderDictionary IHttpResponseFeature.Headers
Microsoft.AspNetCore.Server.IIS (1)
Core\IISHttpContext.FeatureCollection.cs (1)
176IHeaderDictionary IHttpResponseFeature.Headers
Microsoft.AspNetCore.Server.Kestrel.Core (1)
Internal\Http\HttpProtocol.FeatureCollection.cs (1)
136IHeaderDictionary IHttpResponseFeature.Headers
Microsoft.AspNetCore.TestHost (1)
ResponseFeature.cs (1)
62public IHeaderDictionary Headers { get; set; }
4 writes to Headers
InMemory.FunctionalTests (1)
ResponseTests.cs (1)
2892responseFeature.Headers = new HttpResponseHeaders();
InProcessWebSite (1)
src\Servers\IIS\IIS\test\testassets\InProcessWebSite\Startup.cs (1)
342ctx.Features.Get<IHttpResponseFeature>().Headers = headers;
Microsoft.AspNetCore.Http.Tests (1)
Internal\DefaultHttpResponseTests.cs (1)
241context.Features.Get<IHttpResponseFeature>().Headers = headers;
Microsoft.AspNetCore.Owin (1)
OwinEnvironment.cs (1)
65{ OwinConstants.ResponseHeaders, new FeatureMap<IHttpResponseFeature>(feature => Utilities.MakeDictionaryStringArray(feature.Headers), (feature, value) => feature.Headers = Utilities.MakeHeaderDictionary((IDictionary<string, string[]>)value)) },
20 references to Headers
InMemory.FunctionalTests (2)
ResponseTests.cs (2)
2891originalResponseHeaders = responseFeature.Headers; 2897Assert.Same(originalResponseHeaders, responseFeature.Headers);
InProcessWebSite (1)
src\Servers\IIS\IIS\test\testassets\InProcessWebSite\Startup.cs (1)
343Assert.Same(headers, ctx.Features.Get<IHttpResponseFeature>().Headers);
Microsoft.AspNetCore.Components.Endpoints.Tests (1)
RazorComponentResultTest.cs (1)
243responseMock.Setup(r => r.Headers).Returns(new HeaderDictionary());
Microsoft.AspNetCore.Http (5)
Features\DefaultConnectionLifetimeNotificationFeature.cs (1)
34_httpResponseFeature.Headers.Connection = "close";
Internal\DefaultHttpResponse.cs (3)
64get { return HttpResponseFeature.Headers; } 103HttpResponseFeature.Headers.ContentType = default; 107HttpResponseFeature.Headers.ContentType = value;
Internal\ResponseCookies.cs (1)
26Headers = _features.GetRequiredFeature<IHttpResponseFeature>().Headers;
Microsoft.AspNetCore.Http.Features (2)
IHttpResponseFeature.cs (2)
37/// <see cref="ReasonPhrase"/>, and <see cref="Headers"/> are now immutable, and 46/// This is the last chance to modify the <see cref="Headers"/>, <see cref="StatusCode"/>, or
Microsoft.AspNetCore.Owin (1)
OwinEnvironment.cs (1)
65{ OwinConstants.ResponseHeaders, new FeatureMap<IHttpResponseFeature>(feature => Utilities.MakeDictionaryStringArray(feature.Headers), (feature, value) => feature.Headers = Utilities.MakeHeaderDictionary((IDictionary<string, string[]>)value)) },
Microsoft.AspNetCore.Server.HttpSys.FunctionalTests (5)
ResponseHeaderTests.cs (5)
47var responseHeaders = responseInfo.Headers; 73var responseHeaders = responseInfo.Headers; 98var responseHeaders = responseInfo.Headers; 123var responseHeaders = responseInfo.Headers; 144var responseHeaders = responseInfo.Headers;
Microsoft.AspNetCore.TestHost (1)
HttpContextBuilder.cs (1)
243Headers = serverResponseFeature.Headers,
Microsoft.AspNetCore.TestHost.Tests (2)
ClientHandlerTests.cs (2)
33Assert.NotNull(features.Get<IHttpResponseFeature>().Headers); 84Assert.NotNull(features.Get<IHttpResponseFeature>().Headers);