public static IAppBuilder UseHttpsRedirect(this IAppBuilder builder, int httpsPort = 443, RedirectStatusCode statusCode = RedirectStatusCode.Permanent) { return(builder.Use <HttpsRedirectMiddleware>(httpsPort, statusCode)); }
public HttpsRedirectMiddleware(OwinMiddleware next, int httpsPort, RedirectStatusCode statusCode) : base(next) { this.httpsPort = httpsPort; this.statusCode = statusCode; }