Bagikan melalui


HttpsRedirectionMiddleware Kelas

Definisi

Middleware yang mengalihkan permintaan non-HTTPS ke URL HTTPS.

public ref class HttpsRedirectionMiddleware
public class HttpsRedirectionMiddleware
type HttpsRedirectionMiddleware = class
Public Class HttpsRedirectionMiddleware
Warisan
HttpsRedirectionMiddleware

Konstruktor

HttpsRedirectionMiddleware(RequestDelegate, IOptions<HttpsRedirectionOptions>, IConfiguration, ILoggerFactory)

Menginisialisasi HttpsRedirectionMiddleware.

HttpsRedirectionMiddleware(RequestDelegate, IOptions<HttpsRedirectionOptions>, IConfiguration, ILoggerFactory, IServerAddressesFeature)

Menginisialisasi HttpsRedirectionMiddleware.

Metode

Invoke(HttpContext)

Memanggil HttpsRedirectionMiddleware.

Berlaku untuk