Show / Hide Table of Contents

Class SecurityHeadersMiddleware

Middleware for handling security headers.

Inheritance
System.Object
SecurityHeadersMiddleware
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: Lib.AspNetCore.Security
Assembly: Lib.AspNetCore.Security.dll
Syntax
public class SecurityHeadersMiddleware

Constructors

SecurityHeadersMiddleware(RequestDelegate, SecurityHeadersPolicy)

Instantiates a new SecurityHeadersMiddleware.

Declaration
public SecurityHeadersMiddleware(RequestDelegate next, SecurityHeadersPolicy policy)
Parameters
Type Name Description
RequestDelegate next

The next middleware in the pipeline.

SecurityHeadersPolicy policy

An instance of the SecurityHeadersPolicy to be applied.

Methods

Invoke(HttpContext)

Process an individual request.

Declaration
public Task Invoke(HttpContext context)
Parameters
Type Name Description
HttpContext context

The context.

Returns
Type Description
System.Threading.Tasks.Task

The task object representing the asynchronous operation.

Back to top Copyright © 2016 - 2023 Tomasz Pęczek