Version 1
[yaffs-website] / vendor / jcalderonzumba / gastonjs / docs / api / commands / headers / add_headers.md
diff --git a/vendor/jcalderonzumba/gastonjs/docs/api/commands/headers/add_headers.md b/vendor/jcalderonzumba/gastonjs/docs/api/commands/headers/add_headers.md
new file mode 100644 (file)
index 0000000..52f24b9
--- /dev/null
@@ -0,0 +1,24 @@
+add_headers
+========
+This command allows you to set the additional headers you want to send when visiting pages via GastonJS.
+
+**add_headers** will add the headers by creating the ones that do not exists and overwriting the ones that already exists.
+
+```json
+{
+    "name": "add_headers",
+    "args": [
+        {
+            "X-Header-One": "one",
+            "X-Header-Two": "two",
+            "X-Old-Header": "new-value"
+        }
+    ]
+}
+```
+Response should be:
+```json
+{
+  "response": true
+}
+```