14 references to CopyHeadersFrom
Microsoft.AspNetCore.OutputCaching (1)
OutputCacheMiddleware.cs (1)
404.CopyHeadersFrom(headers);
Microsoft.AspNetCore.OutputCaching.Microbenchmarks (3)
EndToEndBenchmarks.cs (3)
128.CopyHeadersFrom(_headers); 144.CopyHeadersFrom(_headers); 161.CopyHeadersFrom(_headers);
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\"" });