3 references to AddRedirectToWww
Microsoft.AspNetCore.Rewrite (2)
RewriteOptionsExtensions.cs (2)
139
return
AddRedirectToWww
(options, statusCode: StatusCodes.Status308PermanentRedirect, domains);
158
return
AddRedirectToWww
(options, statusCode: StatusCodes.Status307TemporaryRedirect, domains);
Microsoft.AspNetCore.Rewrite.Tests (1)
MiddlewareTests.cs (1)
819
var options = new RewriteOptions().
AddRedirectToWww
(statusCode: statusCode, "example.com");