3 writes to Location
Microsoft.AspNetCore.Http.Results (3)
Created.cs (3)
25Location = location; 39Location = locationUri.AbsoluteUri; 43Location = locationUri.GetComponents(UriComponents.SerializationInfoString, UriFormat.UriEscaped);
15 references to Location
Microsoft.AspNetCore.Http.Results (2)
Created.cs (2)
67if (!string.IsNullOrEmpty(Location)) 69httpContext.Response.Headers.Location = Location;
Microsoft.AspNetCore.Http.Results.Tests (13)
CreatedResultTests.cs (1)
27Assert.Same(location, result.Location);
ResultsTests.cs (6)
577Assert.Null(result.Location); 623Assert.Equal(uri, result.Location); 669Assert.Equal(uri.ToString(), result.Location); 679Assert.Null(result.Location); 689Assert.Empty(result.Location); 699Assert.Null(result.Location);
TypedResultsTests.cs (6)
574Assert.Null(result.Location); 604Assert.Equal(uri, result.Location); 634Assert.Equal(uri.ToString(), result.Location); 644Assert.Null(result.Location); 651Assert.Empty(result.Location); 659Assert.Null(result.Location);