- * Adds a new cookie.
- * @param {http.ServerResponse} res
- * @param {String} name
- * @param {String} value
- * @param {Object=} opt
- * @param {String=} opt.domain
- * @param {Date=} opt.expires
- * @param {Boolean=} opt.httpOnly
- * @param {Number=} opt.maxAge
- * @param {String=} opt.path
- * @param {String=} opt.sameSite
- * @param {Boolean=} opt.secure
+ * Adds a new set-cookie header value to response, with supplied data.
+ * @param {http.ServerResponse} res response
+ * @param {(string, string) => void} res.appendHeader sets header values
+ * @param {string} name cookie name
+ * @param {string} value cookie value
+ * @param {object=} opt cookie options
+ * @param {string=} opt.domain cookie domain
+ * @param {Date=} opt.expires cookie expiration
+ * @param {boolean=} opt.httpOnly cookie client visibility
+ * @param {number=} opt.maxAge cookie lifetime
+ * @param {string=} opt.path cookie path
+ * @param {string=} opt.sameSite cookie sharing
+ * @param {boolean=} opt.secure cookie security
+ * @param {string[]=} opt.extension cookie extension attribute values