13 implementations of
InMemory.FunctionalTests (2)
Microsoft.AspNetCore.Hosting.Tests (1)
Microsoft.AspNetCore.Http (1)
Microsoft.AspNetCore.Owin (1)
Microsoft.AspNetCore.Server.HttpSys (2)
Microsoft.AspNetCore.Server.IIS (2)
Microsoft.AspNetCore.Server.Kestrel.Core (1)
Microsoft.AspNetCore.Server.Kestrel.Core.Tests (1)
Microsoft.AspNetCore.Shared.Tests (2)
634 writes to
Aspire.Dashboard (1)
Aspire.Dashboard.Tests (1)
BasicWebSite (1)
blazor-devserver (2)
FormatterWebSite (1)
Http3SampleApp (1)
HttpAbstractions.SampleApp (1)
InMemory.FunctionalTests (54)
InProcessWebSite (12)
Interop.FunctionalTests (2)
Microsoft.AspNetCore.Antiforgery.Test (6)
Microsoft.AspNetCore.Authentication.Test (2)
Microsoft.AspNetCore.Components.Endpoints (4)
Microsoft.AspNetCore.Components.WebAssembly.Server (2)
Microsoft.AspNetCore.CookiePolicy.Test (10)
Microsoft.AspNetCore.Cors.Test (1)
Microsoft.AspNetCore.Diagnostics.Middleware (2)
Microsoft.AspNetCore.Grpc.JsonTranscoding (2)
Microsoft.AspNetCore.HeaderParsing.Tests (9)
Microsoft.AspNetCore.Http.Abstractions (3)
Microsoft.AspNetCore.Http.Connections.Tests (4)
Microsoft.AspNetCore.Http.Extensions (4)
Microsoft.AspNetCore.Http.Extensions.Tests (106)
Microsoft.AspNetCore.Http.Features (89)
Microsoft.AspNetCore.Http.Microbenchmarks (2)
Microsoft.AspNetCore.Http.Results.Tests (3)
Microsoft.AspNetCore.Http.Tests (1)
Microsoft.AspNetCore.HttpLogging.Tests (32)
Microsoft.AspNetCore.HttpOverrides (8)
Microsoft.AspNetCore.HttpOverrides.Tests (47)
Microsoft.AspNetCore.Mvc.Core.Test (4)
Microsoft.AspNetCore.Mvc.Cors.Test (2)
Microsoft.AspNetCore.Mvc.Formatters.Xml.Test (2)
Microsoft.AspNetCore.Mvc.IntegrationTests (4)
Microsoft.AspNetCore.Mvc.TagHelpers.Test (10)
Microsoft.AspNetCore.OutputCaching (1)
Microsoft.AspNetCore.OutputCaching.Tests (16)
Microsoft.AspNetCore.Owin (1)
Microsoft.AspNetCore.Owin.Tests (2)
Microsoft.AspNetCore.ResponseCaching (3)
Microsoft.AspNetCore.ResponseCaching.Tests (31)
Microsoft.AspNetCore.Routing.FunctionalTests (3)
Microsoft.AspNetCore.Routing.Tests (24)
Matching\ContentEncodingNegotiationMatcherPolicyTest.cs (22)
80httpContext.Request.Headers["Accept-Encoding"] = "gzip, br";
100httpContext.Request.Headers["Accept-Encoding"] = "br";
120httpContext.Request.Headers["Accept-Encoding"] = "br";
140httpContext.Request.Headers["Accept-Encoding"] = "gzip;q=0.5, br;q=1.0";
160httpContext.Request.Headers["Accept-Encoding"] = "gzip;q=0.5, br;q=1.0";
180httpContext.Request.Headers["Accept-Encoding"] = "gzip, br";
199httpContext.Request.Headers["Accept-Encoding"] = "zstd";
220httpContext.Request.Headers["Accept-Encoding"] = "zstd";
241httpContext.Request.Headers["Accept-Encoding"] = "gzip, br";
260httpContext.Request.Headers["Accept-Encoding"] = "br, gzip";
279httpContext.Request.Headers["Accept-Encoding"] = "identity";
298httpContext.Request.Headers["Accept-Encoding"] = "identity";
317httpContext.Request.Headers["Accept-Encoding"] = "";
449httpContext.Request.Headers["Accept-Encoding"] = "gzip, br";
467httpContext.Request.Headers["Accept-Encoding"] = "br";
485httpContext.Request.Headers["Accept-Encoding"] = "br";
503httpContext.Request.Headers["Accept-Encoding"] = "gzip;q=0.5, br;q=1.0";
521httpContext.Request.Headers["Accept-Encoding"] = "gzip;q=0.5, br;q=1.0";
539httpContext.Request.Headers["Accept-Encoding"] = "gzip, br";
557httpContext.Request.Headers["Accept-Encoding"] = "identity";
575httpContext.Request.Headers["Accept-Encoding"] = "identity";
593httpContext.Request.Headers["Accept-Encoding"] = "";
Microsoft.AspNetCore.Security.Microbenchmarks (3)
Microsoft.AspNetCore.Server.HttpSys.FunctionalTests (66)
ResponseCachingTests.cs (41)
52httpContext.Response.Headers["x-request-count"] = (requestCount++).ToString(CultureInfo.InvariantCulture);
71httpContext.Response.Headers["x-request-count"] = (requestCount++).ToString(CultureInfo.InvariantCulture);
72httpContext.Response.Headers["Cache-Control"] = "public";
92httpContext.Response.Headers["x-request-count"] = (requestCount++).ToString(CultureInfo.InvariantCulture);
93httpContext.Response.Headers["Cache-Control"] = "public, max-age=10";
113httpContext.Response.Headers["x-request-count"] = (requestCount++).ToString(CultureInfo.InvariantCulture);
114httpContext.Response.Headers["Cache-Control"] = "public, max-age=10";
138httpContext.Response.Headers["x-request-count"] = (requestCount++).ToString(CultureInfo.InvariantCulture);
139httpContext.Response.Headers["Cache-Control"] = "public, max-age=10";
158httpContext.Response.Headers["x-request-count"] = (requestCount++).ToString(CultureInfo.InvariantCulture);
159httpContext.Response.Headers["Cache-Control"] = "public, max-age=10";
178httpContext.Response.Headers["x-request-count"] = (requestCount++).ToString(CultureInfo.InvariantCulture);
179httpContext.Response.Headers["Cache-Control"] = "public, max-age=" + int.MaxValue.ToString(CultureInfo.InvariantCulture);
198httpContext.Response.Headers["x-request-count"] = (requestCount++).ToString(CultureInfo.InvariantCulture);
199httpContext.Response.Headers["Cache-Control"] = "public, s-maxage=10";
218httpContext.Response.Headers["x-request-count"] = (requestCount++).ToString(CultureInfo.InvariantCulture);
219httpContext.Response.Headers["Cache-Control"] = "public, max-age=0, s-maxage=10";
238httpContext.Response.Headers["x-request-count"] = (requestCount++).ToString(CultureInfo.InvariantCulture);
239httpContext.Response.Headers["Cache-Control"] = "public";
240httpContext.Response.Headers["Expires"] = (DateTime.UtcNow + TimeSpan.FromSeconds(10)).ToString("r");
262httpContext.Response.Headers["x-request-count"] = (requestCount++).ToString(CultureInfo.InvariantCulture);
263httpContext.Response.Headers["Cache-Control"] = "public, max-age=10";
264httpContext.Response.Headers[headerName] = "headerValue";
285httpContext.Response.Headers["x-request-count"] = (requestCount++).ToString(CultureInfo.InvariantCulture);
286httpContext.Response.Headers["Cache-Control"] = "public";
287httpContext.Response.Headers["Expires"] = expiresValue;
306httpContext.Response.Headers["x-request-count"] = (requestCount++).ToString(CultureInfo.InvariantCulture);
307httpContext.Response.Headers["Expires"] = (DateTime.UtcNow + TimeSpan.FromSeconds(10)).ToString("r");
326httpContext.Response.Headers["x-request-count"] = (requestCount++).ToString(CultureInfo.InvariantCulture);
327httpContext.Response.Headers["Cache-Control"] = "public, max-age=10";
328httpContext.Response.Headers["Expires"] = (DateTime.UtcNow - TimeSpan.FromSeconds(10)).ToString("r"); // In the past
347httpContext.Response.Headers["x-request-count"] = (requestCount++).ToString(CultureInfo.InvariantCulture);
348httpContext.Response.Headers["Cache-Control"] = "public, max-age=10";
368httpContext.Response.Headers["x-request-count"] = (requestCount++).ToString(CultureInfo.InvariantCulture);
369httpContext.Response.Headers["Cache-Control"] = "public, max-age=10";
390httpContext.Response.Headers["x-request-count"] = (requestCount++).ToString(CultureInfo.InvariantCulture);
391httpContext.Response.Headers["Cache-Control"] = "public, max-age=10";
409httpContext.Response.Headers["x-request-count"] = (requestCount++).ToString(CultureInfo.InvariantCulture);
410httpContext.Response.Headers["Cache-Control"] = "public, max-age=30";
429httpContext.Response.Headers["x-request-count"] = (requestCount++).ToString(CultureInfo.InvariantCulture);
430httpContext.Response.Headers["Cache-Control"] = "public, max-age=10";
Microsoft.AspNetCore.Server.Kestrel.Core (1)
Microsoft.AspNetCore.Server.Kestrel.Core.Tests (10)
Microsoft.AspNetCore.Server.Kestrel.Microbenchmarks (13)
Microsoft.AspNetCore.SpaProxy (1)
Microsoft.AspNetCore.SpaServices.Extensions (2)
Microsoft.AspNetCore.TestHost.Tests (16)
QueueSharing (1)
RazorPagesWebSite (2)
Sockets.FunctionalTests (2)
WebPubSubWeb (1)
293 references to
ControllersFromServicesClassLibrary (1)
IISSample (1)
InMemory.FunctionalTests (11)
InProcessWebSite (10)
Interop.FunctionalTests (2)
JwtSample (1)
Microsoft.AspNetCore.Antiforgery (1)
Microsoft.AspNetCore.Antiforgery.Test (10)
DefaultAntiforgeryTest.cs (10)
367return context.HttpContext.Response.Headers[headerName].ToString();
1003var xFrameOptions = context.HttpContext.Response.Headers["X-Frame-Options"];
1026Assert.Equal("no-cache, no-store", context.HttpContext.Response.Headers["Cache-Control"]);
1027Assert.Equal("no-cache", context.HttpContext.Response.Headers["Pragma"]);
1049Assert.Equal("no-cache, no-store", context.HttpContext.Response.Headers["Cache-Control"]);
1050Assert.Equal("no-cache", context.HttpContext.Response.Headers["Pragma"]);
1073Assert.Equal("no-cache, no-store", context.HttpContext.Response.Headers["Cache-Control"]);
1074Assert.Equal("no-cache", context.HttpContext.Response.Headers["Pragma"]);
1103var xFrameOptions = context.HttpContext.Response.Headers["X-Frame-Options"];
1272Assert.Equal("public", context.HttpContext.Response.Headers["Cache-Control"]);
Microsoft.AspNetCore.CookiePolicy.Test (14)
Microsoft.AspNetCore.Cors.Test (9)
CorsServiceTests.cs (9)
593Assert.Equal("http://example.com", httpContext.Response.Headers["Access-Control-Allow-Origin"]);
633Assert.Equal("true", httpContext.Response.Headers["Access-Control-Allow-Credentials"]);
653Assert.Equal("Origin", httpContext.Response.Headers["Vary"]);
674Assert.Equal("Cookie,Origin", httpContext.Response.Headers["Vary"]);
735Assert.Equal("PUT", httpContext.Response.Headers["Access-Control-Allow-Methods"]);
776Assert.Equal("foo", httpContext.Response.Headers["Access-Control-Allow-Headers"]);
838Assert.Equal("foo,bar", httpContext.Response.Headers[CorsConstants.AccessControlExposeHeaders]);
858Assert.Equal("foo", httpContext.Response.Headers["Access-Control-Expose-Headers"]);
899Assert.Equal("30", httpContext.Response.Headers["Access-Control-Max-Age"]);
Microsoft.AspNetCore.Diagnostics.Middleware.Tests (3)
Microsoft.AspNetCore.Hosting (1)
Microsoft.AspNetCore.Http.Connections.Tests (7)
Microsoft.AspNetCore.Http.Extensions (2)
Microsoft.AspNetCore.Http.Extensions.Tests (1)
Microsoft.AspNetCore.Http.Features (89)
Microsoft.AspNetCore.Http.Results.Tests (13)
Microsoft.AspNetCore.Http.Tests (4)
Microsoft.AspNetCore.HttpOverrides (2)
Microsoft.AspNetCore.HttpOverrides.Tests (7)
Microsoft.AspNetCore.Mvc.Core (2)
Microsoft.AspNetCore.Mvc.Core.Test (32)
Filters\ResponseCacheFilterExecutorTest.cs (11)
29Assert.Equal("no-store", context.HttpContext.Response.Headers["Cache-control"]);
188Assert.Equal(output, context.HttpContext.Response.Headers["Cache-control"]);
245Assert.Equal(output, context.HttpContext.Response.Headers["Cache-control"]);
325Assert.Equal(varyOutput, context.HttpContext.Response.Headers["Vary"]);
326Assert.Equal(cacheControlOutput, context.HttpContext.Response.Headers["Cache-control"]);
450Assert.Equal("no-store,no-cache", context.HttpContext.Response.Headers["Cache-control"]);
451Assert.Equal("no-cache", context.HttpContext.Response.Headers["Pragma"]);
470Assert.Equal("public,max-age=20", context.HttpContext.Response.Headers["Cache-control"]);
490Assert.Equal("private,max-age=10", context.HttpContext.Response.Headers["Cache-control"]);
510Assert.Equal("public,max-age=10", context.HttpContext.Response.Headers["Cache-control"]);
530Assert.Equal("Test", context.HttpContext.Response.Headers["Vary"]);
Microsoft.AspNetCore.Mvc.Cors (2)
Microsoft.AspNetCore.Mvc.Cors.Test (8)
CorsAuthorizationFilterTest.cs (8)
42Assert.Equal("http://example.com", response.Headers[CorsConstants.AccessControlAllowOrigin]);
43Assert.Equal("header1,header2", response.Headers[CorsConstants.AccessControlAllowHeaders]);
46Assert.Equal("PUT", response.Headers[CorsConstants.AccessControlAllowMethods]);
47Assert.Equal("exposed1,exposed2", response.Headers[CorsConstants.AccessControlExposeHeaders]);
48Assert.Equal("123", response.Headers[CorsConstants.AccessControlMaxAge]);
49Assert.Equal("true", response.Headers[CorsConstants.AccessControlAllowCredentials]);
92Assert.Equal("http://example.com", response.Headers[CorsConstants.AccessControlAllowOrigin]);
93Assert.Equal("exposed1,exposed2", response.Headers[CorsConstants.AccessControlExposeHeaders]);
Microsoft.AspNetCore.Mvc.TagHelpers (1)
Microsoft.AspNetCore.Mvc.ViewFeatures.Test (1)
Microsoft.AspNetCore.OutputCaching.Tests (1)
Microsoft.AspNetCore.Owin.Tests (2)
Microsoft.AspNetCore.ResponseCaching (1)
Microsoft.AspNetCore.Rewrite (1)
Microsoft.AspNetCore.Routing (2)
Microsoft.AspNetCore.Routing.Tests (3)
Microsoft.AspNetCore.Server.HttpSys (1)
Microsoft.AspNetCore.Server.HttpSys.FunctionalTests (16)
Microsoft.AspNetCore.Server.IIS (1)
Microsoft.AspNetCore.Server.IISIntegration (4)
Microsoft.AspNetCore.Server.Kestrel.Core (1)
Microsoft.AspNetCore.Server.Kestrel.Core.Tests (4)
Microsoft.AspNetCore.Server.Kestrel.Microbenchmarks (1)
Microsoft.AspNetCore.SignalR.Client.FunctionalTests (1)
Microsoft.AspNetCore.SignalR.StackExchangeRedis.Tests (1)
Microsoft.AspNetCore.SignalR.Tests (1)
Microsoft.AspNetCore.TestHost.Tests (9)
Microsoft.AspNetCore.WebSockets.Tests (1)
NativeIISSample (1)
OpenIdConnectSample (1)
SignalR.Client.FunctionalTestApp (3)
StatusCodePagesSample (1)
WebPubSubWeb (1)