header_constraint
Summary
Example object
{
"name": "X-Forwarded-Proto",
"value": "http"
}
Fields
name
name
Header key to match on. Supports regex expressions.
value
value
Header value to match on. Supports regex expressions.
case_sensitive
case_sensitive
If true
, then the value regex matching will be case sensitive. Defaults to false
.
invert
invert
If true
, invert the value regex match. This allows easier "not" expressions.
For example, to match only X-Forwarded-Proto: "http"
:
{
"name": "X-Forwarded-Proto",
"value": "http"
}
But to match anything NOT "https":
{
"name": "X-Forwarded-Proto",
"value": "https",
"invert": true
}
Last updated
Was this helpful?