# header\_constraint

## Summary

### Example object

```javascript
{
  "name": "X-Forwarded-Proto",
  "value": "http"
}
```

### Fields

#### `name`

Header key to match on. Supports regex expressions.

#### `value`

Header value to match on. Supports regex expressions.

#### `case_sensitive`

If `true`, then the [value](#value) regex matching will be case sensitive. Defaults to `false`.

#### `invert`

If `true`, invert the [value](#value) regex match. This allows easier "not" expressions.

For example, to match only `X-Forwarded-Proto: "http"`:

```javascript
{
  "name": "X-Forwarded-Proto",
  "value": "http"
}
```

But to match anything NOT "https":

```javascript
{
  "name": "X-Forwarded-Proto",
  "value": "https",
  "invert": true
}
```
