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. +

    Cookie handling

    +

    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:

    + +

    To delete a cookie, set its value to null.

    +