sxpress-cookie-parser
v1.0.1
Published
cookie-parser
Downloads
3
Readme
sxpress-cookie-parser middleware for sxpress
example
var sxpress = require('sxpress');
var cookieParser = require('sxpress-cookie-parser');
var app = sxpress();
app.use(cookieParser());
app.use(function (req, res, next) {
console.log(req.cookies);
res.cookie('sxpressId', +new Date());
next();
});