{"_id":"ajax-request","_rev":"27-18edfd9acb1d28853d0b9d212a88eb03","name":"ajax-request","description":"Http request for nodejs, and it also support file download","dist-tags":{"latest":"1.2.3"},"versions":{"1.0.0":{"name":"ajax-request","version":"1.0.0","description":"Async request for nodejs","main":"index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"keywords":["request","http","ajax","http","request"],"author":{"name":"douzi","email":"liaowei08@gmail.com"},"license":"ISC","_id":"ajax-request@1.0.0","_shasum":"7f4ca99a90b55859fba86fb6694027e380a96f38","_from":".","_npmVersion":"1.4.23","_npmUser":{"name":"douzi","email":"liaowei08@gmail.com"},"maintainers":[{"name":"douzi","email":"liaowei08@gmail.com"}],"dist":{"shasum":"7f4ca99a90b55859fba86fb6694027e380a96f38","tarball":"https://registry.npmjs.org/ajax-request/-/ajax-request-1.0.0.tgz","integrity":"sha512-xqxd9MMydhUKYZTUgDOwMrOYf6TGWHDo1qrpKbj5Z7CgnUCn6z8rnNqVcuaW+WEhjIs1gn7A12aHoiClSR0EjQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCt4XaJ7Yz1Sv3q/KZrusu2oPn0BNqC+a33iE7iCKaK/gIgVnAOa+D8eZbveWMObGvzZ4bb0nLFDqn693PhicbXiAA="}]}},"1.0.1":{"name":"ajax-request","version":"1.0.1","description":"Async request for nodejs","main":"index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"https://github.com/douzi8/ajax-request"},"keywords":["request","http","ajax","http","request","http download"],"author":{"name":"douzi","email":"liaowei08@gmail.com"},"license":"ISC","devDependencies":{"grunt":"^0.4.5","grunt-contrib-jshint":"^0.10.0"},"dependencies":{"file-system":"^1.2.5","utils-extend":"^1.0.5"},"gitHead":"1bf1503a8daaa1bad239653d4f0aea7bb4e4ce43","bugs":{"url":"https://github.com/douzi8/ajax-request/issues"},"homepage":"https://github.com/douzi8/ajax-request","_id":"ajax-request@1.0.1","_shasum":"0b8089795cd25069c3c95113214b6b820a1f98fc","_from":".","_npmVersion":"1.4.23","_npmUser":{"name":"douzi","email":"liaowei08@gmail.com"},"maintainers":[{"name":"douzi","email":"liaowei08@gmail.com"}],"dist":{"shasum":"0b8089795cd25069c3c95113214b6b820a1f98fc","tarball":"https://registry.npmjs.org/ajax-request/-/ajax-request-1.0.1.tgz","integrity":"sha512-AjsYxw/UI28DoxpDWvCz7Bd3SGvpa6rJ5kqni5d9C/IHjDOLs11FQsjML7/nF/oWzAjAMYmn0iMG9xTJsmNxbg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGwSHNwgwsvUQoGPRE5Pov+ixcyuF5R6bSI6Ju0dP85EAiEAoddRbI5dPbUHf9QokFr2FYVr1Wt2OJok8EjYTCTUxKg="}]}},"1.0.3":{"name":"ajax-request","version":"1.0.3","description":"Http request for nodejs, and it also support file download","main":"index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"https://github.com/douzi8/ajax-request"},"keywords":["request","http","ajax","http","request","http download","image","json","resource","download","file download"],"author":{"name":"douzi","email":"liaowei08@gmail.com"},"license":"ISC","devDependencies":{"grunt":"^0.4.5","grunt-contrib-jshint":"^0.10.0"},"dependencies":{"file-system":"^1.2.5","utils-extend":"^1.0.5"},"gitHead":"82292fc5367746d0c0bf6782c9fe25a6068436c2","bugs":{"url":"https://github.com/douzi8/ajax-request/issues"},"homepage":"https://github.com/douzi8/ajax-request","_id":"ajax-request@1.0.3","_shasum":"6dc3c9f7d4cc4eb5ef5102e5d9c519b2d5bb540c","_from":".","_npmVersion":"1.4.23","_npmUser":{"name":"douzi","email":"liaowei08@gmail.com"},"maintainers":[{"name":"douzi","email":"liaowei08@gmail.com"}],"dist":{"shasum":"6dc3c9f7d4cc4eb5ef5102e5d9c519b2d5bb540c","tarball":"https://registry.npmjs.org/ajax-request/-/ajax-request-1.0.3.tgz","integrity":"sha512-4n3TwaG6SFlOkjBQZEfBrUOVS8jKXtvAbIjSt+PT2x9GrBlJnK+3pRM/lYjLFJJSSygPwbK1+Qd06GkUi1JBkg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCDYHiYTByC+E7yir7n3zZGl5m82UKMSAh7ErSfd5OdhwIhAOi6QuPIpO7VKFaJRCrPOjvjQwQDCmutKm4e+IXT6eO6"}]}},"1.0.4":{"name":"ajax-request","version":"1.0.4","description":"Http request for nodejs, and it also support file download","main":"index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"https://github.com/douzi8/ajax-request"},"keywords":["request","http","ajax","http","request","http download","image","json","resource","download","file download"],"author":{"name":"douzi","email":"liaowei08@gmail.com"},"license":"ISC","devDependencies":{"grunt":"^0.4.5","grunt-contrib-jshint":"^0.10.0"},"dependencies":{"file-system":"^1.2.5","utils-extend":"^1.0.5"},"gitHead":"82292fc5367746d0c0bf6782c9fe25a6068436c2","bugs":{"url":"https://github.com/douzi8/ajax-request/issues"},"homepage":"https://github.com/douzi8/ajax-request","_id":"ajax-request@1.0.4","_shasum":"8b7d2c18a4c2a5beb2724cba7b3de457e9d0eebc","_from":".","_npmVersion":"1.4.23","_npmUser":{"name":"douzi","email":"liaowei08@gmail.com"},"maintainers":[{"name":"douzi","email":"liaowei08@gmail.com"}],"dist":{"shasum":"8b7d2c18a4c2a5beb2724cba7b3de457e9d0eebc","tarball":"https://registry.npmjs.org/ajax-request/-/ajax-request-1.0.4.tgz","integrity":"sha512-D5l03dENotRhxcEOvMruvFqw5rI8hTlnTzOAJOGBwdqSfK0cR+DfmowvI7nIXHU9y1MjKanuAlajgWtoy9JMYg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIE+gh7k+Ho8kIm/wUX5sGKyE32UJTfhHb29IJfhxFeLKAiEAsAhVft6T0L3B/LS9HvR/gaTrvEAFbEdQBx7loky5z2Y="}]}},"1.0.5":{"name":"ajax-request","version":"1.0.5","description":"Http request for nodejs, and it also support file download","main":"index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"https://github.com/douzi8/ajax-request"},"keywords":["request","http","ajax","http","request","http download","image","json","resource","download","file download"],"author":{"name":"douzi","email":"liaowei08@gmail.com"},"license":"ISC","devDependencies":{"grunt":"^0.4.5","grunt-contrib-jshint":"^0.10.0"},"dependencies":{"file-system":"^1.2.5","utils-extend":"^1.0.5"},"gitHead":"db06307228d1603a45b28b7abce7144d8370c8dc","bugs":{"url":"https://github.com/douzi8/ajax-request/issues"},"homepage":"https://github.com/douzi8/ajax-request","_id":"ajax-request@1.0.5","_shasum":"d4dcd7f74fe3f9a0a91386279261d64b924cbd73","_from":".","_npmVersion":"1.4.23","_npmUser":{"name":"douzi","email":"liaowei08@gmail.com"},"maintainers":[{"name":"douzi","email":"liaowei08@gmail.com"}],"dist":{"shasum":"d4dcd7f74fe3f9a0a91386279261d64b924cbd73","tarball":"https://registry.npmjs.org/ajax-request/-/ajax-request-1.0.5.tgz","integrity":"sha512-PojB9oPRz/izSaFFhhqpZb7+lfKPfNCPN55+A2bZp+sH55tA0my1VUTR+BwPymfml5ydoZKa0tW+AD0AifwE5w==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCZ2aMUxh3ovgbY7Tovcs4ng4BSVgHrZfmgtQuaTvwrZAIgMEHTWpYZzEkdTNqSghBqSbN/Ai3MgoxIyswlRsQY8YY="}]}},"1.0.6":{"name":"ajax-request","version":"1.0.6","description":"Http request for nodejs, and it also support file download","main":"index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"https://github.com/douzi8/ajax-request"},"keywords":["request","http","ajax","http","request","http download","image","json","resource","download","file download","base64","image base64"],"author":{"name":"douzi","email":"liaowei08@gmail.com"},"license":"ISC","devDependencies":{"grunt":"^0.4.5","grunt-contrib-jshint":"^0.10.0"},"dependencies":{"file-system":"^1.2.5","utils-extend":"^1.0.5"},"gitHead":"b5ee156f90cf844a03e3c59d9fb56bb7c3144c97","bugs":{"url":"https://github.com/douzi8/ajax-request/issues"},"homepage":"https://github.com/douzi8/ajax-request","_id":"ajax-request@1.0.6","_shasum":"8e9c753d349e2b4eb64fb91daf091f61dea55110","_from":".","_npmVersion":"1.4.23","_npmUser":{"name":"douzi","email":"liaowei08@gmail.com"},"maintainers":[{"name":"douzi","email":"liaowei08@gmail.com"}],"dist":{"shasum":"8e9c753d349e2b4eb64fb91daf091f61dea55110","tarball":"https://registry.npmjs.org/ajax-request/-/ajax-request-1.0.6.tgz","integrity":"sha512-DWHx9Pg28X1FY80XJKdD5ffIoVfHdKvNA3edHY3w+yyWOQU8TgFh7XKC2/gXMSOkWhKm955zpo6EnqGw6MHVHg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFtaSgjWn9VmwuA4XiNJnvOGJuxkPCsHZUz1uWIybW9+AiEAv2o6RD0WeZbTVYH8fDgQk/8FO9eNMeFGRCvh7pwAXuI="}]}},"1.0.7":{"name":"ajax-request","version":"1.0.7","description":"Http request for nodejs, and it also support file download","main":"index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"https://github.com/douzi8/ajax-request"},"keywords":["request","http","ajax","http","request","http download","image","json","resource","download","file download","base64","image base64"],"author":{"name":"douzi","email":"liaowei08@gmail.com"},"license":"ISC","devDependencies":{"grunt":"^0.4.5","grunt-contrib-jshint":"^0.10.0"},"dependencies":{"file-system":"^2.0.0","utils-extend":"^1.0.5"},"gitHead":"cd4f7c1394de8886ca9111578288dc221c2bfc4c","bugs":{"url":"https://github.com/douzi8/ajax-request/issues"},"homepage":"https://github.com/douzi8/ajax-request","_id":"ajax-request@1.0.7","_shasum":"f431bf2445399f98a8f92e144198c4d451bf37d2","_from":".","_npmVersion":"1.4.23","_npmUser":{"name":"douzi","email":"liaowei08@gmail.com"},"maintainers":[{"name":"douzi","email":"liaowei08@gmail.com"}],"dist":{"shasum":"f431bf2445399f98a8f92e144198c4d451bf37d2","tarball":"https://registry.npmjs.org/ajax-request/-/ajax-request-1.0.7.tgz","integrity":"sha512-WVIUVjxl8/2va1IyvQkLh5PvieT3FBil8I1XiXi2qlTdmWK2YVcrtdqBg0pL5zU6mzrxzNvLfmAZ4TBqiWjoEg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDTGRQmXgdZw4dAWb8KDMLBV8Hk91y+y/2sHjQzBCC9VgIgFswE2t6hOHeEGJwn4l5oRMGnWYGAXlZn063q+2MxAS4="}]}},"1.1.0":{"name":"ajax-request","version":"1.1.0","description":"Http request for nodejs, and it also support file download","main":"index.js","scripts":{"test":"mocha"},"repository":{"type":"git","url":"https://github.com/douzi8/ajax-request"},"keywords":["request","http","ajax","http","request","http download","image","json","resource","download","file download","base64","image base64"],"author":{"name":"douzi","email":"liaowei08@gmail.com"},"license":"ISC","devDependencies":{"body-parser":"^1.10.2","express":"^4.11.1","grunt":"^0.4.5","grunt-contrib-jshint":"^0.10.0","serve-static":"^1.8.1"},"dependencies":{"file-system":"^2.0.0","utils-extend":"^1.0.7"},"gitHead":"7cf0cd4be0470d3962c74d23ee6c7fbfd3c9ea2e","bugs":{"url":"https://github.com/douzi8/ajax-request/issues"},"homepage":"https://github.com/douzi8/ajax-request","_id":"ajax-request@1.1.0","_shasum":"f44b309cdee8a2458a9ad94abb3364a86e450018","_from":".","_npmVersion":"1.4.23","_npmUser":{"name":"douzi","email":"liaowei08@gmail.com"},"maintainers":[{"name":"douzi","email":"liaowei08@gmail.com"}],"dist":{"shasum":"f44b309cdee8a2458a9ad94abb3364a86e450018","tarball":"https://registry.npmjs.org/ajax-request/-/ajax-request-1.1.0.tgz","integrity":"sha512-RNcq3k5nXt0PyY2kawX3Y9sYYF7WOEJFL35Nq4WFsUBJ6rRDBzuPmsEaQzHnemvE4YKaZN0Hn2YqNIpcxKW2lg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHORIf/91xVhY2mbbEa9jeHNldX9XktrE50lmDgr1tVaAiEA3zqs++BCcFH/XmAKGCX6DxicYx/AVJ574ymq/VKRj4c="}]}},"1.2.0":{"name":"ajax-request","version":"1.2.0","description":"Http request for nodejs, and it also support file download","main":"index.js","scripts":{"test":"mocha"},"repository":{"type":"git","url":"https://github.com/douzi8/ajax-request"},"keywords":["request","http","ajax","http","request","http download","image","json","resource","download","file download","base64","image base64"],"author":{"name":"douzi","email":"liaowei08@gmail.com"},"license":"ISC","devDependencies":{"body-parser":"^1.10.2","express":"^4.11.1","grunt":"^0.4.5","grunt-contrib-jshint":"^0.10.0","serve-static":"^1.8.1"},"dependencies":{"file-system":"^2.0.0","utils-extend":"^1.0.7"},"gitHead":"96116614df813850553009962fc8e46391f0ffa3","bugs":{"url":"https://github.com/douzi8/ajax-request/issues"},"homepage":"https://github.com/douzi8/ajax-request","_id":"ajax-request@1.2.0","_shasum":"321377931c7a4655c3b0774ae59c0364087eb5c3","_from":".","_npmVersion":"1.4.23","_npmUser":{"name":"douzi","email":"liaowei08@gmail.com"},"maintainers":[{"name":"douzi","email":"liaowei08@gmail.com"}],"dist":{"shasum":"321377931c7a4655c3b0774ae59c0364087eb5c3","tarball":"https://registry.npmjs.org/ajax-request/-/ajax-request-1.2.0.tgz","integrity":"sha512-rErGyw6NEikOP1tlibOqbtmlKORmh+Aoy8E3H0QY7uG6Uk/f/Lo0amY/2tks77CIGxTGyQKwo58SLZb+s1JiAg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCICTyINFYacpi/xdz15yov6ig8JkG3YlSHSQe9DWSPLt0AiEAozGAU1KRvYfeDMYjtwNOstGMQGXH+Qp3m3xuMogVpzg="}]}},"1.2.1":{"name":"ajax-request","version":"1.2.1","description":"Http request for nodejs, and it also support file download","main":"index.js","scripts":{"test":"mocha"},"repository":{"type":"git","url":"https://github.com/douzi8/ajax-request"},"keywords":["request","http","ajax","http","request","http download","image","json","resource","download","file download","base64","image base64"],"author":{"name":"douzi","email":"liaowei08@gmail.com"},"license":"ISC","devDependencies":{"body-parser":"^1.10.2","express":"^4.11.1","grunt":"^0.4.5","grunt-contrib-jshint":"^0.10.0","serve-static":"^1.8.1"},"dependencies":{"file-system":"^2.1.1","utils-extend":"^1.0.7"},"gitHead":"05a7dcd659079755f440e8607c435281d254807f","bugs":{"url":"https://github.com/douzi8/ajax-request/issues"},"homepage":"https://github.com/douzi8/ajax-request","_id":"ajax-request@1.2.1","_shasum":"bca0b1cc922290659e2794fb395e64e7799c1d21","_from":".","_npmVersion":"1.4.23","_npmUser":{"name":"douzi","email":"liaowei08@gmail.com"},"maintainers":[{"name":"douzi","email":"liaowei08@gmail.com"}],"dist":{"shasum":"bca0b1cc922290659e2794fb395e64e7799c1d21","tarball":"https://registry.npmjs.org/ajax-request/-/ajax-request-1.2.1.tgz","integrity":"sha512-1C78CEMBqUhS5AtW9t3wKBnZY3UNWteowHviKzWcW0WLi22ivHqxUbrdIF7vuYqt362cF761nzgI6JScovkDlw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQC/T/KhgAj34DHbx/iQ8vMHjaaM8JMIMUhGn8BT+wjwuQIgXGn3rVxQODnASLht9N/Lo0F8OzJIO574AU5GeVVuxEc="}]}},"1.2.2":{"name":"ajax-request","version":"1.2.2","description":"Http request for nodejs, and it also support file download","main":"index.js","scripts":{"test":"mocha"},"repository":{"type":"git","url":"git+https://github.com/douzi8/ajax-request.git"},"keywords":["request","http","ajax","http","request","http download","image","json","resource","download","file download","base64","image base64"],"author":{"name":"douzi","email":"liaowei08@gmail.com"},"license":"ISC","devDependencies":{"body-parser":"^1.10.2","express":"^4.11.1","grunt":"^0.4.5","grunt-contrib-jshint":"^0.10.0","serve-static":"^1.8.1"},"dependencies":{"file-system":"^2.1.1","utils-extend":"^1.0.7"},"gitHead":"ed803f1d71286baabe9491a588f618aa99b9f7b8","bugs":{"url":"https://github.com/douzi8/ajax-request/issues"},"homepage":"https://github.com/douzi8/ajax-request#readme","_id":"ajax-request@1.2.2","_shasum":"c30561b6df3c08b71fa4ebaa7a44ec35732ab26a","_from":".","_npmVersion":"3.10.8","_nodeVersion":"6.9.1","_npmUser":{"name":"douzi","email":"liaowei08@gmail.com"},"maintainers":[{"name":"douzi","email":"liaowei08@gmail.com"}],"dist":{"shasum":"c30561b6df3c08b71fa4ebaa7a44ec35732ab26a","tarball":"https://registry.npmjs.org/ajax-request/-/ajax-request-1.2.2.tgz","integrity":"sha512-pBC7at0jl04T4shw6M65/YxyQ/aacabnGTsh6vEvpzBPnoVv1u97zMmXzaMjJVve7UeZbmpxDD04JE1zU/9G5A==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCIkAH4/Ct2TgGPUYrPp1e2maKVjijZCJv+mdT1XkOGvgIgW6P6JdTOICa0YKJdqnF3lsnk6/0n3YqVKmoM+JmZ3cg="}]},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ajax-request-1.2.2.tgz_1495882898420_0.4703734100330621"}},"1.2.3":{"name":"ajax-request","version":"1.2.3","description":"Http request for nodejs, and it also support file download","main":"index.js","scripts":{"test":"mocha"},"repository":{"type":"git","url":"git+https://github.com/douzi8/ajax-request.git"},"keywords":["request","http","ajax","http","request","http download","image","json","resource","download","file download","base64","image base64"],"author":{"name":"douzi","email":"liaowei08@gmail.com"},"license":"ISC","devDependencies":{"body-parser":"^1.10.2","express":"^4.11.1","grunt":"^0.4.5","grunt-contrib-jshint":"^0.10.0","serve-static":"^1.8.1"},"dependencies":{"file-system":"^2.1.1","utils-extend":"^1.0.7"},"gitHead":"75b6b48b0fd0bed9cabe6dc9acbe3e517db03c65","bugs":{"url":"https://github.com/douzi8/ajax-request/issues"},"homepage":"https://github.com/douzi8/ajax-request#readme","_id":"ajax-request@1.2.3","_shasum":"99fcbec1d6d2792f85fa949535332bd14f5f3790","_from":".","_npmVersion":"3.10.10","_nodeVersion":"6.11.0","_npmUser":{"name":"douzi","email":"liaowei08@gmail.com"},"dist":{"shasum":"99fcbec1d6d2792f85fa949535332bd14f5f3790","tarball":"https://registry.npmjs.org/ajax-request/-/ajax-request-1.2.3.tgz","integrity":"sha512-1o4a9TxDmET7NmU8eIeIsV8t1SD7dooKT7wVFgoKDJC++zljg0vLhcPsoBA3Za2bD5A5LJJBMlGoglsTHa517w==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIA64XXso17sgBIeuyu/4pmeyddXtbtRNQRg0GdscEjl8AiBiipbg1NNGwnKS27jMrhliiWMA1CcP9qS/Gl9+zxF8+A=="}]},"maintainers":[{"name":"douzi","email":"liaowei08@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ajax-request-1.2.3.tgz_1498555141315_0.16634671320207417"}}},"readme":"# ajax-request — Simplified http request\n[![NPM](https://nodei.co/npm/ajax-request.png?downloads=true&downloadRank=true&stars=true)](https://nodei.co/npm/ajax-request/)\n```js\nvar request = require('ajax-request');\n```\n\n## install\n```\nnpm install ajax-request --save\n```\n\n### test\n```\nmocha\n```\n\n## API\n### request(options, callback)\n* {obejct|string} ``options`` required  \n  If the options is string, it will send get request.\n  * {string} ``options.url`` required\n  * {string} ``options.method`` [options.method=GET]  \n  The http request type\n  * {obejct} ``options.data``  \n  if the request type is `GET`, it's appended to query string of the URL, or it's sended to remote of body.\n  * {object} ``options.headers``  \n  An object containing request headers.\n  * {string} ``options.encoding``  \n  Set response data encoding\n  * {boolean} ``options.isBuffer``  [options.isBuffer=false]  \n  Parse response data to buffer\n  * {boolean} ``options.json`` [options.json=false]  \n  Parse response data to json\n* {function} ``callback`` required\n\n```js\nrequest('url', function(err, res, body) {});\n\nrequest({\n  url: '',\n  method: 'GET',\n  data: {\n    query1: 'value1'\n  }\n}, function(err, res, body) {\n  \n});\n```\n\n### .post(options, callback)\nThe API same as request\n```js\nrequest.post({\n  url: 'url',\n  data: {},\n  headers: {}\n});\n```\n\n### .download(options, callback)\n* {obejct} ``options`` required\n  * ``options.url`` {string} required\n  * ``options.ignore`` {boolean} [options.ignore=false]  \n  Is the filepath ignore case. \n  * ``options.rootPath`` {string} [options.rootPath='']  \n  The root of dest path\n  * ``options.destPath`` {string|function}  \n  Custom the download path.\n* {function} ``callback`` required\n\n```js\nrequest.download({\n  url: 'path/index.png',\n  rootPath: ''\n}, function(err, res, body, destpath) {});\n\nrequest.download({\n  url: 'path/index.png',\n  destPath: function(filename) {\n    return filename;\n  }\n}, function(err, res, body, destpath) { });\n\n```\n\n### .base64(url, callback)\nDeprecated, move to [base64](https://github.com/douzi8/base64-img#requestbase64url-callback)","maintainers":[{"name":"douzi","email":"liaowei08@gmail.com"}],"time":{"modified":"2022-06-13T02:33:41.449Z","created":"2014-11-28T00:54:54.937Z","1.0.0":"2014-11-28T00:54:54.937Z","1.0.1":"2014-12-03T13:18:20.297Z","1.0.3":"2014-12-04T03:05:52.985Z","1.0.4":"2014-12-04T03:09:29.574Z","1.0.5":"2014-12-04T03:39:57.519Z","1.0.6":"2014-12-05T12:19:07.070Z","1.0.7":"2015-01-14T12:15:57.674Z","1.1.0":"2015-01-29T14:06:53.502Z","1.2.0":"2015-03-25T02:54:18.114Z","1.2.1":"2015-04-09T10:41:56.405Z","1.2.2":"2017-05-27T11:01:38.511Z","1.2.3":"2017-06-27T09:19:01.430Z"},"keywords":["request","http","ajax","http","request","http download","image","json","resource","download","file download","base64","image base64"],"author":{"name":"douzi","email":"liaowei08@gmail.com"},"license":"ISC","readmeFilename":"README.md","homepage":"https://github.com/douzi8/ajax-request#readme","repository":{"type":"git","url":"git+https://github.com/douzi8/ajax-request.git"},"bugs":{"url":"https://github.com/douzi8/ajax-request/issues"},"users":{"wkx101":true,"ha006":true,"codeinpixel":true,"edwinharly":true,"usex":true}}