Class WacSecureHeadersMiddleware
A middleware for injecting OWASP recommended headers into a HTTP Request
Inheritance
System.Object
WacSecureHeadersMiddleware
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: WaCore.Web.Middleware.SecureHeaders
Assembly: WaCore.Web.dll
Syntax
public class WacSecureHeadersMiddleware
Constructors
| Improve this Doc View SourceWacSecureHeadersMiddleware(RequestDelegate, WacSecureHeadersMiddlewareConfiguration)
Declaration
public WacSecureHeadersMiddleware(RequestDelegate next, WacSecureHeadersMiddlewareConfiguration config)
Parameters
Type | Name | Description |
---|---|---|
Microsoft.AspNetCore.Http.RequestDelegate | next | |
WacSecureHeadersMiddlewareConfiguration | config |
Methods
| Improve this Doc View SourceAddHeader(HttpContext, String, String)
Declaration
public void AddHeader(HttpContext httpContext, string headerName, string headerValue)
Parameters
Type | Name | Description |
---|---|---|
Microsoft.AspNetCore.Http.HttpContext | httpContext | |
System.String | headerName | |
System.String | headerValue |
Invoke(HttpContext)
Declaration
public Task Invoke(HttpContext httpContext)
Parameters
Type | Name | Description |
---|---|---|
Microsoft.AspNetCore.Http.HttpContext | httpContext |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task |