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