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" })
70
entry.
CopyHeadersFrom
(new HeaderDictionary { [""] = "", [HeaderNames.Accept] = new[] { null, null, "", "text/html" }, [HeaderNames.AcceptCharset] = new string[] { null } });
OutputCacheMiddlewareTests.cs (8)
108
.
CopyHeadersFrom
(new HeaderDictionary() { { "MyHeader", "NewValue" } }))
183
entry.
CopyHeadersFrom
(new HeaderDictionary { [HeaderNames.Date] = HeaderUtilities.FormatDate(value) });
221
entry.
CopyHeadersFrom
(new HeaderDictionary
261
entry.
CopyHeadersFrom
(new HeaderDictionary { [HeaderNames.LastModified] = HeaderUtilities.FormatDate(utcNow + TimeSpan.FromSeconds(10)) });
282
context.CachedResponse.
CopyHeadersFrom
(new HeaderDictionary { [HeaderNames.LastModified] = HeaderUtilities.FormatDate(utcNow - TimeSpan.FromSeconds(10)) });
325
.
CopyHeadersFrom
(new HeaderDictionary { [HeaderNames.ETag] = responseETag.ToString() });
343
context.CachedResponse.
CopyHeadersFrom
(new HeaderDictionary { [HeaderNames.ETag] = "\"E2\"" });
358
context.CachedResponse.
CopyHeadersFrom
(new HeaderDictionary { [HeaderNames.ETag] = "\"E2\"" });