3 writes to Location
Microsoft.AspNetCore.Http.Results (3)
CreatedOfT.cs (3)
28Location = location; 47Location = locationUri.AbsoluteUri; 51Location = locationUri.GetComponents(UriComponents.SerializationInfoString, UriFormat.UriEscaped);
15 references to Location
Microsoft.AspNetCore.Http.Results (2)
CreatedOfT.cs (2)
78if (!string.IsNullOrEmpty(Location)) 80httpContext.Response.Headers.Location = Location;
Microsoft.AspNetCore.Http.Results.Tests (13)
CreatedOfTResultTests.cs (1)
42Assert.Same(location, result.Location);
ResultsTests.cs (7)
592Assert.Equal(uri, result.Location); 608Assert.Equal(uri, result.Location); 638Assert.Equal(uri.ToString(), result.Location); 654Assert.Equal(uri.ToString(), result.Location); 712Assert.Null(result.Location); 726Assert.Empty(result.Location); 740Assert.Null(result.Location);
TypedResultsTests.cs (5)
589Assert.Equal(uri, result.Location); 619Assert.Equal(uri.ToString(), result.Location); 669Assert.Null(result.Location); 679Assert.Empty(result.Location); 689Assert.Null(result.Location);