Class ForwardHeadersOptions

Version: 21.x

Options to configure headers forwarding.

Inheritance

System.Object

ForwardHeadersOptions

Namespace: Sitecore.AspNet.RenderingEngine.Configuration

Assembly: Sitecore.AspNet.RenderingEngine.dll

Syntax
public class ForwardHeadersOptions : Object

Constructors

ForwardHeadersOptions()

Declaration
public ForwardHeadersOptions()

Properties

HeadersWhitelist

Gets whitelist of headers allowed to be transferred to Layout Service request.

Declaration
public HashSet<string> HeadersWhitelist { get; }
Property Value
TypeDescription
System.Collections.Generic.HashSet

<

System.String

>

RequestHeadersFilters

Gets filters, which will be applied sequentially during copying of headers from request to Layout service request.

Declaration
public IList<Action<HttpRequest, IDictionary<string, string[]>>> RequestHeadersFilters { get; }
Property Value
TypeDescription
System.Collections.Generic.IList

<

System.Action

<

Microsoft.AspNetCore.Http.HttpRequest

,

System.Collections.Generic.IDictionary

<

System.String

,

System.String

[]>>>

ResponseHeadersFilters

Gets filters, which will be applied sequentially during copying of headers from Layout service response to response sent by rendering host.

Declaration
public IList<Action<ILookup<string, string>, IDictionary<string, string[]>>> ResponseHeadersFilters { get; }
Property Value
TypeDescription
System.Collections.Generic.IList

<

System.Action

<

System.Linq.ILookup

<

System.String

,

System.String

>,

System.Collections.Generic.IDictionary

<

System.String

,

System.String

[]>>>
If you have suggestions for improving this article, let us know!