Version 1
[yaffs-website] / vendor / jcalderonzumba / gastonjs / docs / api / commands / cookies / cookies.md
diff --git a/vendor/jcalderonzumba/gastonjs/docs/api/commands/cookies/cookies.md b/vendor/jcalderonzumba/gastonjs/docs/api/commands/cookies/cookies.md
new file mode 100644 (file)
index 0000000..77d97b2
--- /dev/null
@@ -0,0 +1,34 @@
+cookies
+=========
+Command to get the visible cookies in the current page.
+##Request
+```json
+{
+    "name": "cookies",
+    "args": []
+}
+```
+##Response
+If the page you are visiting sends cookies you will get something like:
+```json
+{
+    "response": [
+        {
+            "domain": "127.0.0.1",
+            "httponly": true,
+            "name": "b_cookie",
+            "path": "/",
+            "secure": false,
+            "value": "b_has_value"
+        },
+        {
+            "domain": "127.0.0.1",
+            "httponly": true,
+            "name": "a_cookie",
+            "path": "/",
+            "secure": false,
+            "value": "a_has_value"
+        }
+    ]
+}
+```