Create Header

The Create Header filter is only available as a Rule Set. The filter does not actually filter. Instead, it will add a custom header to subsequent Origin requests.

Support

Protocol

HLS DASH
yes yes

Keys

name key
ch ch()

Values

values example
name=”value” ch(X-Is-Bakery=”some-value”)

The filter value consists of both the header name and value. The header value must always be wrapped in double quotes or else Bakery will return an “invalid syntax” error.

Usage Example

Rule Sets:

| name | alias | value |
|:------:|:-------:|:-----------:|
| DopplerHeader | dh | ch(X-Is-Bakery="some-value") |
| AnotherHeader | ah | ch(X-Another-Header="another-value") |

// Origin request
GET http://somehost.com/somefolder/subfolder/playlist1.m3u8 HTTP/1.1
// Headers
X-Is-Bakery: some-value
X-Another-Header: another-value