238d9d593b8c7fff9e6a4ea85bab506911ebb037
[yaffs-website] / commands / headers / set_headers.md
1 set_headers
2 ========
3 This command allows you to set the additional headers you want to send when visiting pages via GastonJS.
4
5 **set_headers** WILL overwrite any other additional headers you might have set before.
6
7 ```json
8 {
9     "name": "set_headers",
10     "args": [
11         {
12             "X-Header-One": "one",
13             "X-Header-Two": "two"
14         }
15     ]
16 }
17 ```
18 Response should be:
19 ```json
20 {
21   "response": true
22 }
23 ```