52f24b9bcff124951be93d5b442a03684a82be2e
[yaffs-website] / commands / headers / add_headers.md
1 add_headers
2 ========
3 This command allows you to set the additional headers you want to send when visiting pages via GastonJS.
4
5 **add_headers** will add the headers by creating the ones that do not exists and overwriting the ones that already exists.
6
7 ```json
8 {
9     "name": "add_headers",
10     "args": [
11         {
12             "X-Header-One": "one",
13             "X-Header-Two": "two",
14             "X-Old-Header": "new-value"
15         }
16     ]
17 }
18 ```
19 Response should be:
20 ```json
21 {
22   "response": true
23 }
24 ```