28 references to AddHeader
Microsoft.AspNetCore.Cors.Test (15)
CorsMiddlewareTests.cs (15)
52.AddHeader(CorsConstants.Origin, OriginUrl)
94.AddHeader(CorsConstants.Origin, OriginUrl)
145.AddHeader(CorsConstants.Origin, OriginUrl)
194.AddHeader(CorsConstants.Origin, OriginUrl)
195.AddHeader(CorsConstants.AccessControlRequestMethod, "PUT")
259.AddHeader(CorsConstants.Origin, OriginUrl)
260.AddHeader(CorsConstants.AccessControlRequestMethod, "PUT")
261.AddHeader(CorsConstants.AccessControlRequestHeaders, "X-Test1,X-Test2")
322.AddHeader(CorsConstants.Origin, "http://test.example.com")
323.AddHeader(CorsConstants.AccessControlRequestMethod, "PUT")
365.AddHeader(CorsConstants.Origin, "http://test.example.com")
481.AddHeader(CorsConstants.Origin, OriginUrl)
482.AddHeader(CorsConstants.AccessControlRequestMethod, "PUT")
539.AddHeader(CorsConstants.Origin, OriginUrl)
615.AddHeader(CorsConstants.Origin, OriginUrl)
Microsoft.AspNetCore.Routing.FunctionalTests (2)
Microsoft.AspNetCore.StaticFiles.Tests (9)
CacheHeaderTests.cs (9)
196.AddHeader("If-None-Match", resp1.Headers.ETag.ToString())
216.AddHeader("If-Match", etag + ", " + etag)
223.AddHeader("If-Match", etag + ", \"badetag\"")
245.AddHeader("If-None-Match", "\"fake\"")
251.AddHeader("If-None-Match", resp1.Headers.ETag.ToString())
257.AddHeader("If-None-Match", "\"fake\"")
287.AddHeader("If-Modified-Since", "bad-date")
355.AddHeader("If-Modified-Since", DateTimeOffset.UtcNow.ToString(format, CultureInfo.InvariantCulture))
390.AddHeader("If-Unmodified-Since", "bad-date")
Microsoft.AspNetCore.TestHost.Tests (2)