Table of Contents

Enum HeaderMatchMode

Namespace
Yarp.ReverseProxy.Configuration
Assembly
Yarp.ReverseProxy.dll

How to match header values.

public enum HeaderMatchMode

Fields

Contains = 2

Any of the headers with the given name must contain any of the match values, subject to case sensitivity settings.

ExactHeader = 0

Any of the headers with the given name must match in its entirety, subject to case sensitivity settings. If a header contains multiple values (separated by , or ;), they are split before matching. A single pair of quotes will also be stripped from the value before matching.

Exists = 4

The header must exist and contain any non-empty value. If there are multiple headers with the same name, the rule will also match.

HeaderPrefix = 1

Any of the headers with the given name must match by prefix, subject to case sensitivity settings. If a header contains multiple values (separated by , or ;), they are split before matching. A single pair of quotes will also be stripped from the value before matching.

NotContains = 3

The header must exist and the value must be non-empty. None of the headers with the given name may contain any of the match values, subject to case sensitivity settings.

NotExists = 5

The header must not exist.