Enum HeaderMatchMode
How to match header values.
Namespace: Yarp.ReverseProxy.Configuration
Assembly: Yarp.ReverseProxy.dll
Syntax
public enum HeaderMatchMode : int
Fields
Name | Description |
---|---|
Contains | Any of the headers with the given name must contain any of the match values, subject to case sensitivity settings. |
ExactHeader | 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 | 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 | 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 | 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 | The header must not exist. |