Version 1
[yaffs-website] / vendor / jcalderonzumba / gastonjs / docs / api / commands / headers / set_headers.md
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 (file)
index 0000000..238d9d5
--- /dev/null
@@ -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
+}
+```