5 references to AddRedirect
Microsoft.AspNetCore.Rewrite (1)
RewriteOptionsExtensions.cs (1)
62
return
AddRedirect
(options, regex, replacement, statusCode: StatusCodes.Status302Found);
Microsoft.AspNetCore.Rewrite.Tests (4)
MiddlewareTests.cs (4)
152
var options = new RewriteOptions().
AddRedirect
(pattern, replacement, statusCode: StatusCodes.Status301MovedPermanently);
189
options.
AddRedirect
("(.*)", "http://example.com/$1", statusCode: StatusCodes.Status301MovedPermanently);
210
var options = new RewriteOptions().
AddRedirect
("(.*)", "http://example.com/$1", statusCode: StatusCodes.Status301MovedPermanently);
617
var options = new RewriteOptions().
AddRedirect
("(.*)", "$1", statusCode: StatusCodes.Status301MovedPermanently);