Class UnwantedHeaderKeysMiddleware
Middleware to filter requests based on the HTTP protocol used.
Inherited Members
Namespace: Coree.NETASP.Middleware.UnwantedHeaderKeysFiltering
Assembly: Coree.NETASP.dll
Syntax
public class UnwantedHeaderKeysMiddleware
Constructors
| Edit this page View SourceUnwantedHeaderKeysMiddleware(RequestDelegate, ILogger<UnwantedHeaderKeysMiddleware>, IOptions<UnwantedHeaderKeysOptions>, IPointService)
Declaration
public UnwantedHeaderKeysMiddleware(RequestDelegate nextMiddleware, ILogger<UnwantedHeaderKeysMiddleware> logger, IOptions<UnwantedHeaderKeysOptions> options, IPointService pointService)
Parameters
| Type | Name | Description |
|---|---|---|
| RequestDelegate | nextMiddleware | |
| ILogger<UnwantedHeaderKeysMiddleware> | logger | |
| IOptions<UnwantedHeaderKeysOptions> | options | |
| IPointService | pointService |
Methods
| Edit this page View SourceInvokeAsync(HttpContext)
Invoke method to process the HTTP context based on blacklisted headers.
Declaration
public Task InvokeAsync(HttpContext context)
Parameters
| Type | Name | Description |
|---|---|---|
| HttpContext | context | The HTTP context. |
Returns
| Type | Description |
|---|---|
| Task | A task representing the asynchronous operation. |