kwest-cookies
v0.2.2
Published
Cookie support for kwest requests
Downloads
13
Readme
kwest-cookies
Cookies middleware for kwest module.
Installation
$ npm install --save kwest-cookies
Use
var redirect = require('kwest-cookies'),
kwest = require('kwest'),
tough = require('tough-cookie'),
request = kwest().use(cookies({
jar: new tough.CookieJar()
}));
// With a global jar
request('http://www.example.com')
// Or per request
request({
uri: 'http://www.example.com'),
jar: new tough.CookieJar()
});