ebee50ea5a2bf3a3af68ae40054ff8c7196dc815
[yaffs-website] / vendor / jcalderonzumba / gastonjs / docs / api / commands / headers / get_headers.md
1 get_headers
2 ========
3 This command returns an array with the additional HTTP request headers that will be sent to the server for every request issued (for pages and resources).
4
5 ```json
6 {
7   "name":"get_headers",
8   "args":[]
9 }
10 ```
11 When there are no additional headers to be sent the response is:
12 ```json
13 {
14   "response": []
15 }
16 ```
17 When there are additional headers to be sent the response looks like:
18 ```json
19 {
20     "response": {
21         "X-Header-One": "one",
22         "X-Header-Three": "three",
23         "X-Header-Two": "two"
24     }
25 }
26 ```