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