Class ExcessiveHeadersCheck
Health check for the recommended production setup regarding unnecessary headers.
Namespace: Umbraco.Cms.Core.HealthChecks.Checks.Security
Assembly: Umbraco.Core.dll
Syntax
public class ExcessiveHeadersCheck : HealthCheck, IDiscoverable
Constructors
View SourceExcessiveHeadersCheck(ILocalizedTextService, IHostingEnvironment)
Initializes a new instance of the ExcessiveHeadersCheck class.
Declaration
public ExcessiveHeadersCheck(ILocalizedTextService textService, IHostingEnvironment hostingEnvironment)
Parameters
| Type | Name | Description |
|---|---|---|
| ILocalizedTextService | textService | |
| IHostingEnvironment | hostingEnvironment |
Methods
View SourceExecuteAction(HealthCheckAction)
Executes the action and returns it's status
Declaration
public override HealthCheckStatus ExecuteAction(HealthCheckAction action)
Parameters
| Type | Name | Description |
|---|---|---|
| HealthCheckAction | action |
Returns
| Type | Description |
|---|---|
| HealthCheckStatus |
GetStatus()
Get the status for this health check
Declaration
public override async Task<IEnumerable<HealthCheckStatus>> GetStatus()
Returns
| Type | Description |
|---|---|
| Task<IEnumerable<HealthCheckStatus>> |