You can clone with
HTTPS or Subversion.
Its undocumented how to use cookie-node alongside a writeHead call. Only checking the source for cookie-node showed me it was looking for headers as an object -- I was passing headers to writeHead as an array of arrays, which is also supported, but cookie-node doesn't work with that.
cookie-node also fails if the call to writeHead has only one argument (the response code).