Share via


HeaderSetup<THeader> Constructors

Definition

Overloads

HeaderSetup<THeader>(String, HeaderParser<THeader>, Boolean)

Initializes a new instance of the HeaderSetup<THeader> class.

HeaderSetup<THeader>(String, Type, Boolean)

Initializes a new instance of the HeaderSetup<THeader> class.

HeaderSetup<THeader>(String, HeaderParser<THeader>, Boolean)

Source:
HeaderSetup.cs

Initializes a new instance of the HeaderSetup<THeader> class.

public HeaderSetup (string headerName, Microsoft.AspNetCore.HeaderParsing.HeaderParser<THeader> instance, bool cacheable = false);
new Microsoft.AspNetCore.HeaderParsing.HeaderSetup<'Header> : string * Microsoft.AspNetCore.HeaderParsing.HeaderParser<'Header> * bool -> Microsoft.AspNetCore.HeaderParsing.HeaderSetup<'Header>
Public Sub New (headerName As String, instance As HeaderParser(Of THeader), Optional cacheable As Boolean = false)

Parameters

headerName
String

The name of the header.

instance
HeaderParser<THeader>

The parser to parse header values.

cacheable
Boolean

Indicates whether the header's values can be cached.

Applies to

HeaderSetup<THeader>(String, Type, Boolean)

Source:
HeaderSetup.cs

Initializes a new instance of the HeaderSetup<THeader> class.

public HeaderSetup (string headerName, Type parserType, bool cacheable = false);
new Microsoft.AspNetCore.HeaderParsing.HeaderSetup<'Header> : string * Type * bool -> Microsoft.AspNetCore.HeaderParsing.HeaderSetup<'Header>
Public Sub New (headerName As String, parserType As Type, Optional cacheable As Boolean = false)

Parameters

headerName
String

The name of the header.

parserType
Type

The type of the parser to parse header values.

cacheable
Boolean

Indicates whether the header's values can be cached.

Applies to