X-Git-Url: http://www.aleph1.co.uk/gitweb/?a=blobdiff_plain;ds=sidebyside;f=vendor%2Fjcalderonzumba%2Fgastonjs%2Fdocs%2Fapi%2Fcommands%2Fheaders%2Fset_headers.md;fp=vendor%2Fjcalderonzumba%2Fgastonjs%2Fdocs%2Fapi%2Fcommands%2Fheaders%2Fset_headers.md;h=238d9d593b8c7fff9e6a4ea85bab506911ebb037;hb=a2bd1bf0c2c1f1a17d188f4dc0726a45494cefae;hp=0000000000000000000000000000000000000000;hpb=57c063afa3f66b07c4bbddc2d6129a96d90f0aad;p=yaffs-website diff --git a/vendor/jcalderonzumba/gastonjs/docs/api/commands/headers/set_headers.md b/vendor/jcalderonzumba/gastonjs/docs/api/commands/headers/set_headers.md new file mode 100644 index 000000000..238d9d593 --- /dev/null +++ b/vendor/jcalderonzumba/gastonjs/docs/api/commands/headers/set_headers.md @@ -0,0 +1,23 @@ +set_headers +======== +This command allows you to set the additional headers you want to send when visiting pages via GastonJS. + +**set_headers** WILL overwrite any other additional headers you might have set before. + +```json +{ + "name": "set_headers", + "args": [ + { + "X-Header-One": "one", + "X-Header-Two": "two" + } + ] +} +``` +Response should be: +```json +{ + "response": true +} +```