3 implementations of Location
Microsoft.AspNetCore.Server.Kestrel.Core (3)
Internal\Http\HttpHeaders.Generated.cs (3)
2209StringValues IHeaderDictionary.Location 9542StringValues IHeaderDictionary.Location 16464StringValues IHeaderDictionary.Location
39 writes to Location
Microsoft.AspNetCore.Authentication.Cookies (4)
CookieAuthenticationEvents.cs (4)
46context.Response.Headers.Location = context.RedirectUri; 63context.Response.Headers.Location = context.RedirectUri; 80context.Response.Headers.Location = context.RedirectUri; 96context.Response.Headers.Location = context.RedirectUri;
Microsoft.AspNetCore.Http (1)
Internal\DefaultHttpResponse.cs (1)
152Headers.Location = location;
Microsoft.AspNetCore.Http.Extensions (1)
ResponseExtensions.cs (1)
53response.Headers.Location = location;
Microsoft.AspNetCore.Http.Results (10)
Accepted.cs (1)
69httpContext.Response.Headers.Location = Location;
AcceptedAtRoute.cs (1)
97httpContext.Response.Headers.Location = url;
AcceptedAtRouteOfT.cs (1)
111httpContext.Response.Headers.Location = url;
AcceptedOfT.cs (1)
81httpContext.Response.Headers.Location = Location;
Created.cs (1)
69httpContext.Response.Headers.Location = Location;
CreatedAtRoute.cs (1)
97httpContext.Response.Headers.Location = url;
CreatedAtRouteOfT.cs (1)
111httpContext.Response.Headers.Location = url;
CreatedOfT.cs (1)
80httpContext.Response.Headers.Location = Location;
RedirectHttpResult.cs (1)
114httpContext.Response.Headers.Location = destinationUrl;
RedirectToRouteHttpResult.cs (1)
183httpContext.Response.Headers.Location = destinationUrl;
Microsoft.AspNetCore.HttpsPolicy (1)
HttpsRedirectionMiddleware.cs (1)
110context.Response.Headers.Location = redirectUrl;
Microsoft.AspNetCore.Mvc.Core (11)
AcceptedAtActionResult.cs (1)
90context.HttpContext.Response.Headers.Location = url;
AcceptedAtRouteResult.cs (1)
86context.HttpContext.Response.Headers.Location = url;
AcceptedResult.cs (1)
77context.HttpContext.Response.Headers.Location = Location;
CreatedAtActionResult.cs (1)
90context.HttpContext.Response.Headers.Location = url;
CreatedAtRouteResult.cs (1)
86context.HttpContext.Response.Headers.Location = url;
CreatedResult.cs (1)
85context.HttpContext.Response.Headers.Location = Location;
Infrastructure\LocalRedirectResultExecutor.cs (1)
56context.HttpContext.Response.Headers.Location = destinationUrl;
Infrastructure\RedirectResultExecutor.cs (1)
53context.HttpContext.Response.Headers.Location = destinationUrl;
Infrastructure\RedirectToActionResultExecutor.cs (1)
59context.HttpContext.Response.Headers.Location = destinationUrl;
Infrastructure\RedirectToPageResultExecutor.cs (1)
59context.HttpContext.Response.Headers.Location = destinationUrl;
Infrastructure\RedirectToRouteResultExecutor.cs (1)
55context.HttpContext.Response.Headers.Location = destinationUrl;
Microsoft.AspNetCore.Rewrite (7)
RedirectRule.cs (1)
100response.Headers.Location = encodedPath;
RedirectToHttpsRule.cs (1)
36response.Headers.Location = newUrl;
RedirectToWwwHelper.cs (1)
55response.Headers.Location = newUrl;
UrlActions\RedirectAction.cs (4)
42response.Headers.Location = pathBase.HasValue ? pathBase.Value : "/"; 64response.Headers.Location = pathBase + pattern.Substring(0, split) + query; 72response.Headers.Location = pathBase + pattern; 76response.Headers.Location = pathBase + pattern + context.HttpContext.Request.QueryString;
Microsoft.AspNetCore.Rewrite.Tests (1)
PatternSegments\HeaderSegmentTests.cs (1)
18context.HttpContext.Request.Headers.Location = "foo";
Microsoft.AspNetCore.Server.Kestrel.Core.Tests (2)
Http2\Http2HPackEncoderTests.cs (2)
68headers.Location = "https://www.example.com"; 212headers.Location = "你好你好你好你.c";
Microsoft.AspNetCore.StaticFiles (1)
Helpers.cs (1)
46context.Response.Headers.Location = redirect;
15 references to Location
Microsoft.AspNetCore.Authentication.OAuth (1)
OAuthHandler.cs (1)
279var location = Context.Response.Headers.Location;
Microsoft.AspNetCore.Authentication.OpenIdConnect (1)
OpenIdConnectHandler.cs (1)
365var location = Context.Response.Headers.Location;
Microsoft.AspNetCore.Components.Endpoints.Tests (2)
EndpointHtmlRendererTest.cs (1)
808Assert.Equal("http://localhost/redirect", ctx.Response.Headers.Location);
RazorComponentResultTest.cs (1)
233Assert.Equal("https://test/somewhere/else", httpContext.Response.Headers.Location);
Microsoft.AspNetCore.Http.Extensions (1)
ResponseHeaders.cs (1)
173if (Uri.TryCreate(Headers.Location, UriKind.RelativeOrAbsolute, out var uri))
Microsoft.AspNetCore.Http.Extensions.Tests (1)
ResponseExtensionTests.cs (1)
47Assert.Equal(location, context.Response.Headers.Location.First());
Microsoft.AspNetCore.Http.Results.Tests (3)
LocalRedirectResultTests.cs (1)
72Assert.Equal(expectedPath, httpContext.Response.Headers.Location.ToString());
src\Shared\ResultsTests\RedirectResultTestBase.cs (2)
34Assert.Equal(expectedPath, httpContext.Response.Headers.Location.ToString()); 57Assert.Equal(expectedPath, httpContext.Response.Headers.Location.ToString());
Microsoft.AspNetCore.Mvc.Core.Test (3)
LocalRedirectResultTest.cs (1)
78Assert.Equal(expectedPath, httpContext.Response.Headers.Location.ToString());
src\Shared\ResultsTests\RedirectResultTestBase.cs (2)
34Assert.Equal(expectedPath, httpContext.Response.Headers.Location.ToString()); 57Assert.Equal(expectedPath, httpContext.Response.Headers.Location.ToString());
Microsoft.AspNetCore.Rewrite (1)
RewriteMiddleware.cs (1)
104httpContext.Response.Headers.Location.ToString(),
Microsoft.AspNetCore.Rewrite.Tests (2)
IISUrlRewrite\MiddleWareTests.cs (2)
37app.Run(context => context.Response.WriteAsync(context.Response.Headers.Location)); 137app.Run(context => context.Response.WriteAsync(context.Response.Headers.Location));