senchalabs/connect — comment on commit b028b4f20f4737e52a1a455af63aaff828b345a2
File: lib/middleware/cookieParser.js line 51
By shtylman:

does res.cookie({ complex: 'obj' }); make a new cookie called "complex" with value obj? If that is the case, I would think that the res.cookie method could do the proper breakdown. I am not strictly opposed, it was more of an observation on keeping functionality separate for debug-ability, testing, etc. Just seems "cleaner" to avoid doing things that aren't needed and "coupling" middleware too much. Certainly one might not be able to get around it in some cases but this one seemed simple enough. Just my random code feedback :)