2 instantiations of RedirectHttpResult
Microsoft.AspNetCore.Http.Results (2)
TypedResults.cs (2)
572
return
new
(url, permanent, preserveMethod);
592
return
new
(localUrl, acceptLocalUrlOnly: true, permanent, preserveMethod);
8 references to RedirectHttpResult
Microsoft.AspNetCore.Http.Results (8)
RedirectHttpResult.cs (4)
18
/// Initializes a new instance of the <see cref="
RedirectHttpResult
"/> class with the values
28
/// Initializes a new instance of the <see cref="
RedirectHttpResult
"/> class with the values
39
/// Initializes a new instance of the <see cref="
RedirectHttpResult
"/> class with the values
51
/// Initializes a new instance of the <see cref="
RedirectHttpResult
"/> class with the values
TypedResults.cs (4)
567
/// <returns>The created <see cref="
RedirectHttpResult
"/> for the response.</returns>
568
public static
RedirectHttpResult
Redirect([StringSyntax(StringSyntaxAttribute.Uri)] string url, bool permanent = false, bool preserveMethod = false)
587
/// <returns>The created <see cref="
RedirectHttpResult
"/> for the response.</returns>
588
public static
RedirectHttpResult
LocalRedirect([StringSyntax(StringSyntaxAttribute.Uri, UriKind.Relative)] string localUrl, bool permanent = false, bool preserveMethod = false)