KestrunHttpMiddlewareExtensions.AddHttpsRedirection method (1 of 2)
Adds HTTPS redirection to the application using the specified configuration delegate.
public static KestrunHost AddHttpsRedirection(this KestrunHost host,
Action<HttpsRedirectionOptions>? cfg = null)
| parameter | description |
|---|---|
| host | The KestrunHost instance to configure. |
| cfg | The configuration delegate for HTTPS redirection options. |
Return Value
The updated KestrunHost instance.
See Also
- class KestrunHost
- class KestrunHttpMiddlewareExtensions
- namespace Kestrun.Hosting
KestrunHttpMiddlewareExtensions.AddHttpsRedirection method (2 of 2)
Adds HTTPS redirection to the application using the specified HttpsRedirectionOptions.
public static KestrunHost AddHttpsRedirection(this KestrunHost host, HttpsRedirectionOptions cfg)
| parameter | description |
|---|---|
| host | The KestrunHost instance to configure. |
| cfg | The HTTPS redirection options. |
Return Value
The updated KestrunHost instance.
See Also
- class KestrunHost
- class KestrunHttpMiddlewareExtensions
- namespace Kestrun.Hosting