diff --git a/nodes/core/io/21-httpin.html b/nodes/core/io/21-httpin.html index f20a1b62d..e6b24a291 100644 --- a/nodes/core/io/21-httpin.html +++ b/nodes/core/io/21-httpin.html @@ -81,7 +81,33 @@
statusCode, if set, is used as the response status code (default: 200)headers, if set, should be an object containing field/value
pairs to be added as response headers.cookies, if set, can be used to set or delete cookies.
+ The cookies property must be an object of name/value pairs.
+ The value can be either a string to set the value of the cookie with default
+ options, or it can be an object of options.
+
The following example sets two cookies - one called name with
+ a value of nick, the other called session with a
+ value of 1234 and an expiry set to 15 minutes.
+msg.cookies = {
+ name: 'nick',
+ session: {
+ value: '1234',
+ maxAge: 900000
+ }
+}
+ The valid options include:
+domain - (String) domain name for the cookieexpires - (Date) expiry date in GMT. If not specified or set to 0, creates a session cookiemaxAge - (String) expiry date as relative to the current time in millisecondspath - (String) path for the cookie. Defaults to /value - (String) the value to use for the cookieTo delete a cookie, set its value to null.