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