6 references to AddRedirectToHttps
Microsoft.AspNetCore.Rewrite (3)
RewriteOptionsExtensions.cs (3)
87
return
AddRedirectToHttps
(options, statusCode: StatusCodes.Status301MovedPermanently, sslPort: null);
96
return
AddRedirectToHttps
(options, statusCode: StatusCodes.Status302Found, sslPort: null);
106
return
AddRedirectToHttps
(options, statusCode, sslPort: null);
Microsoft.AspNetCore.Rewrite.Tests (2)
MiddlewareTests.cs (2)
265
var options = new RewriteOptions().
AddRedirectToHttps
(statusCode: StatusCodes.Status302Found, sslPort: sslPort);
392
var options = new RewriteOptions().
AddRedirectToHttps
(statusCode: StatusCodes.Status301MovedPermanently, sslPort: sslPort);
RewriteSample (1)
Startup.cs (1)
24
.
AddRedirectToHttps
(302, 5001)