84 references to HeaderDictionary
InProcessWebSite (2)
src\Servers\IIS\IIS\test\testassets\InProcessWebSite\Startup.cs (2)
301var headers = new HeaderDictionary(); 341var headers = new HeaderDictionary();
Microsoft.AspNetCore.Components.Endpoints.Tests (1)
RazorComponentResultTest.cs (1)
243responseMock.Setup(r => r.Headers).Returns(new HeaderDictionary());
Microsoft.AspNetCore.Diagnostics.Middleware.Tests (2)
Logging\HeaderReaderTests.cs (1)
32reader.Read(new HeaderDictionary(), listToFill);
Logging\RequestHeadersEnricherTests.cs (1)
36var headers = new HeaderDictionary
Microsoft.AspNetCore.Hosting.Tests (9)
HostingApplicationDiagnosticsTests.cs (9)
732Headers = new HeaderDictionary() 763Headers = new HeaderDictionary() 792Headers = new HeaderDictionary() 822Headers = new HeaderDictionary() 853Headers = new HeaderDictionary() 890Headers = new HeaderDictionary() 919Headers = new HeaderDictionary() 961Headers = new HeaderDictionary() 1029Headers = new HeaderDictionary()
Microsoft.AspNetCore.Http (2)
Features\HttpRequestFeature.cs (1)
16Headers = new HeaderDictionary();
Features\HttpResponseFeature.cs (1)
17Headers = new HeaderDictionary();
Microsoft.AspNetCore.Http.Extensions.Tests (1)
RequestDelegateFactoryTests.cs (1)
3716public IHeaderDictionary Headers { get; set; } = new HeaderDictionary();
Microsoft.AspNetCore.Http.Tests (20)
DefaultHttpContextTests.cs (1)
432public IHeaderDictionary Headers { get; set; } = new HeaderDictionary();
HeaderDictionaryTests.cs (3)
90var headers = new HeaderDictionary(); 106var headers = new HeaderDictionary 122var emptyHeaders = withStore ? new HeaderDictionary(1) : new HeaderDictionary();
Internal\DefaultHttpRequestTests.cs (4)
67var headers = new HeaderDictionary() 87var headers = new HeaderDictionary() 107var headers = new HeaderDictionary(); 375var headers = new HeaderDictionary();
Internal\DefaultHttpResponseTests.cs (1)
257var headers = new HeaderDictionary();
ResponseCookiesTest.cs (11)
27var headers = (IHeaderDictionary)new HeaderDictionary(); 60var headers = (IHeaderDictionary)new HeaderDictionary(); 81var headers = (IHeaderDictionary)new HeaderDictionary(); 103var headers = (IHeaderDictionary)new HeaderDictionary(); 120var headers = (IHeaderDictionary)new HeaderDictionary(); 150var headers = (IHeaderDictionary)new HeaderDictionary(); 178var headers = (IHeaderDictionary)new HeaderDictionary(); 210var headers = (IHeaderDictionary)new HeaderDictionary(); 228var headers = (IHeaderDictionary)new HeaderDictionary(); 250var headers = (IHeaderDictionary)new HeaderDictionary(); 266var headers = new HeaderDictionary();
Microsoft.AspNetCore.Mvc.Core.Test (1)
Infrastructure\ActionSelectorTest.cs (1)
1109request.SetupGet(r => r.Headers).Returns(new HeaderDictionary());
Microsoft.AspNetCore.Mvc.IntegrationTests (2)
ComplexRecordIntegrationTest.cs (1)
4232Headers = new HeaderDictionary(),
ComplexTypeIntegrationTestBase.cs (1)
3731Headers = new HeaderDictionary(),
Microsoft.AspNetCore.OutputCaching.Microbenchmarks (1)
EndToEndBenchmarks.cs (1)
55_headers = new HeaderDictionary
Microsoft.AspNetCore.OutputCaching.Tests (10)
OutputCacheEntryFormatterTests.cs (2)
51.CopyHeadersFrom(new HeaderDictionary { [HeaderNames.Accept] = new[] { "text/plain", "text/html" }, [HeaderNames.AcceptCharset] = "utf8" }) 70entry.CopyHeadersFrom(new HeaderDictionary { [""] = "", [HeaderNames.Accept] = new[] { null, null, "", "text/html" }, [HeaderNames.AcceptCharset] = new string[] { null } });
OutputCacheMiddlewareTests.cs (8)
108.CopyHeadersFrom(new HeaderDictionary() { { "MyHeader", "NewValue" } })) 183entry.CopyHeadersFrom(new HeaderDictionary { [HeaderNames.Date] = HeaderUtilities.FormatDate(value) }); 221entry.CopyHeadersFrom(new HeaderDictionary 261entry.CopyHeadersFrom(new HeaderDictionary { [HeaderNames.LastModified] = HeaderUtilities.FormatDate(utcNow + TimeSpan.FromSeconds(10)) }); 282context.CachedResponse.CopyHeadersFrom(new HeaderDictionary { [HeaderNames.LastModified] = HeaderUtilities.FormatDate(utcNow - TimeSpan.FromSeconds(10)) }); 325.CopyHeadersFrom(new HeaderDictionary { [HeaderNames.ETag] = responseETag.ToString() }); 343context.CachedResponse.CopyHeadersFrom(new HeaderDictionary { [HeaderNames.ETag] = "\"E2\"" }); 358context.CachedResponse.CopyHeadersFrom(new HeaderDictionary { [HeaderNames.ETag] = "\"E2\"" });
Microsoft.AspNetCore.ResponseCaching (2)
MemoryCachedResponse.cs (1)
14public IHeaderDictionary Headers { get; set; } = new HeaderDictionary();
ResponseCachingMiddleware.cs (1)
309Headers = new HeaderDictionary()
Microsoft.AspNetCore.ResponseCaching.Tests (28)
ResponseCachingMiddlewareTests.cs (14)
63Headers = new HeaderDictionary(), 88Headers = new HeaderDictionary() 140Headers = new HeaderDictionary(), 181context.CachedResponseHeaders = new HeaderDictionary(); 193context.CachedResponseHeaders = new HeaderDictionary(); 224context.CachedResponseHeaders = new HeaderDictionary(); 258context.CachedResponseHeaders = new HeaderDictionary(); 277context.CachedResponseHeaders = new HeaderDictionary(); 293context.CachedResponseHeaders = new HeaderDictionary(); 320context.CachedResponseHeaders = new HeaderDictionary(); 335context.CachedResponseHeaders = new HeaderDictionary(); 348context.CachedResponseHeaders = new HeaderDictionary(); 789Headers = new HeaderDictionary() 862context.CachedResponse = new CachedResponse() { Headers = new HeaderDictionary() };
ResponseCachingPolicyProviderTests.cs (14)
493context.CachedResponseHeaders = new HeaderDictionary(); 507context.CachedResponseHeaders = new HeaderDictionary(); 525context.CachedResponseHeaders = new HeaderDictionary(); 546context.CachedResponseHeaders = new HeaderDictionary(); 566context.CachedResponseHeaders = new HeaderDictionary(); 588context.CachedResponseHeaders = new HeaderDictionary(); 609context.CachedResponseHeaders = new HeaderDictionary(); 633context.CachedResponseHeaders = new HeaderDictionary(); 657context.CachedResponseHeaders = new HeaderDictionary(); 681context.CachedResponseHeaders = new HeaderDictionary(); 704context.CachedResponseHeaders = new HeaderDictionary(); 728context.CachedResponseHeaders = new HeaderDictionary(); 752context.CachedResponseHeaders = new HeaderDictionary(); 777context.CachedResponseHeaders = new HeaderDictionary();
Microsoft.AspNetCore.Server.Kestrel.Core (1)
Internal\Http\HttpProtocol.cs (1)
235public IHeaderDictionary RequestTrailers { get; } = new HeaderDictionary();
Microsoft.AspNetCore.TestHost (2)
ResponseFeature.cs (1)
12private readonly HeaderDictionary _headers = new HeaderDictionary();
ResponseTrailersFeature.cs (1)
11public IHeaderDictionary Trailers { get; set; } = new HeaderDictionary();