{"_id":"nipple","_rev":"305631","name":"nipple","description":"HTTP Client Utilities","dist-tags":{"latest":"2.5.6"},"maintainers":[{"name":"hueniverse","email":"eran@hammer.io"},{"name":"wyatt","email":"wpreul@gmail.com"},{"name":"zishanali","email":"ali.zishan2154@gmail.com"}],"time":{"modified":"2021-06-03T19:30:46.000Z","created":"2013-12-22T09:42:08.101Z","2.5.6":"2014-08-19T16:59:44.285Z","2.5.5":"2014-08-10T20:36:59.983Z","2.5.4":"2014-08-03T07:12:43.447Z","2.5.3":"2014-06-03T22:15:31.180Z","2.5.2":"2014-05-20T22:23:46.144Z","2.5.1":"2014-04-28T20:35:54.525Z","2.5.0":"2014-04-11T04:28:51.777Z","2.4.0":"2014-03-12T22:11:32.744Z","2.3.0":"2014-03-12T16:12:09.368Z","2.2.0":"2014-01-25T20:33:22.606Z","2.1.0":"2014-01-19T06:39:04.292Z","2.0.0":"2014-01-06T06:41:07.095Z","1.0.0":"2013-12-22T20:44:30.187Z","0.0.1":"2013-12-22T09:42:08.101Z"},"users":{"sleistner":true,"ruiquelhas":true},"repository":{"type":"git","url":"git://github.com/hapijs/nipple"},"versions":{"2.5.6":{"name":"nipple","description":"HTTP Client Utilities","version":"2.5.6","repository":{"type":"git","url":"git://github.com/hapijs/nipple"},"main":"index","keywords":["utilities","http","client"],"engines":{"node":">=0.10.30"},"dependencies":{"hoek":"2.x.x","boom":"2.x.x"},"devDependencies":{"lab":"4.x.x"},"scripts":{"test":"make test-cov"},"licenses":[{"type":"BSD","url":"http://github.com/hapijs/nipple/raw/master/LICENSE"}],"contributors":[{"name":"Eran Hammer","email":"eran@hammer.io","url":"http://hueniverse.com"},{"name":"Wyatt Preul","email":"wpreul@gmail.com","url":"http://jsgeek.com"}],"gitHead":"3d31214b61a1947b5eb17f177e63240f0be8e485","bugs":{"url":"https://github.com/hapijs/nipple/issues"},"homepage":"https://github.com/hapijs/nipple","_id":"nipple@2.5.6","_shasum":"becc0258a9a8bd7e55faf85dd6c1e0bb5b981a42","_from":".","_npmVersion":"1.4.21","_npmUser":{"name":"wyatt","email":"wpreul@gmail.com"},"maintainers":[{"name":"hueniverse","email":"eran@hammer.io"},{"name":"wyatt","email":"wpreul@gmail.com"},{"name":"zishanali","email":"ali.zishan2154@gmail.com"}],"dist":{"shasum":"becc0258a9a8bd7e55faf85dd6c1e0bb5b981a42","size":47033,"noattachment":false,"key":"/nipple/-/nipple-2.5.6.tgz","tarball":"http://registry.cnpm.dingdandao.com/nipple/download/nipple-2.5.6.tgz"},"directories":{},"publish_time":1408467584285,"_cnpm_publish_time":1408467584285,"_hasShrinkwrap":false,"deprecated":"This module is no longer maintained and contains known bugs and security issues."},"2.5.5":{"name":"nipple","description":"HTTP Client Utilities","version":"2.5.5","repository":{"type":"git","url":"git://github.com/hapijs/nipple"},"main":"index","keywords":["utilities","http","client"],"engines":{"node":">=0.10.30"},"dependencies":{"hoek":"2.x.x","boom":"2.x.x"},"devDependencies":{"lab":"4.x.x"},"scripts":{"test":"make test-cov"},"licenses":[{"type":"BSD","url":"http://github.com/hapijs/nipple/raw/master/LICENSE"}],"contributors":[{"name":"Eran Hammer","email":"eran@hammer.io","url":"http://hueniverse.com"},{"name":"Wyatt Preul","email":"wpreul@gmail.com","url":"http://jsgeek.com"}],"gitHead":"3d31214b61a1947b5eb17f177e63240f0be8e485","bugs":{"url":"https://github.com/hapijs/nipple/issues"},"homepage":"https://github.com/hapijs/nipple","_id":"nipple@2.5.5","_shasum":"0f291d333e163b74f77fef404d23fad8fa290932","_from":".","_npmVersion":"1.4.21","_npmUser":{"name":"wyatt","email":"wpreul@gmail.com"},"maintainers":[{"name":"hueniverse","email":"eran@hammer.io"},{"name":"wyatt","email":"wpreul@gmail.com"},{"name":"zishanali","email":"ali.zishan2154@gmail.com"}],"dist":{"shasum":"0f291d333e163b74f77fef404d23fad8fa290932","size":46965,"noattachment":false,"key":"/nipple/-/nipple-2.5.5.tgz","tarball":"http://registry.cnpm.dingdandao.com/nipple/download/nipple-2.5.5.tgz"},"directories":{},"publish_time":1407703019983,"_cnpm_publish_time":1407703019983,"_hasShrinkwrap":false,"deprecated":"This module is no longer maintained and contains known bugs and security issues."},"2.5.4":{"name":"nipple","description":"HTTP Client Utilities","version":"2.5.4","repository":{"type":"git","url":"git://github.com/hapijs/nipple"},"main":"index","keywords":["utilities","http","client"],"engines":{"node":">=0.10.30"},"dependencies":{"hoek":"2.x.x","boom":"2.x.x"},"devDependencies":{"lab":"3.x.x"},"scripts":{"test":"make test-cov"},"licenses":[{"type":"BSD","url":"http://github.com/hapijs/nipple/raw/master/LICENSE"}],"gitHead":"b8af3aaac41224e5614b673917641cbfdcf48cac","bugs":{"url":"https://github.com/hapijs/nipple/issues"},"homepage":"https://github.com/hapijs/nipple","_id":"nipple@2.5.4","_shasum":"b72cfe8a515335d4bbaa47dafa012fee49de5cf8","_from":".","_npmVersion":"1.4.21","_npmUser":{"name":"hueniverse","email":"eran@hueniverse.com"},"maintainers":[{"name":"hueniverse","email":"eran@hammer.io"},{"name":"wyatt","email":"wpreul@gmail.com"},{"name":"zishanali","email":"ali.zishan2154@gmail.com"}],"dist":{"shasum":"b72cfe8a515335d4bbaa47dafa012fee49de5cf8","size":43491,"noattachment":false,"key":"/nipple/-/nipple-2.5.4.tgz","tarball":"http://registry.cnpm.dingdandao.com/nipple/download/nipple-2.5.4.tgz"},"directories":{},"publish_time":1407049963447,"_cnpm_publish_time":1407049963447,"_hasShrinkwrap":false,"deprecated":"This module is no longer maintained and contains known bugs and security issues."},"2.5.3":{"name":"nipple","description":"HTTP Client Utilities","version":"2.5.3","repository":{"type":"git","url":"git://github.com/spumko/nipple"},"main":"index","keywords":["utilities","http","client"],"engines":{"node":">=0.10.22"},"dependencies":{"hoek":"2.x.x","boom":"2.x.x"},"devDependencies":{"lab":"3.x.x"},"scripts":{"test":"make test-cov"},"licenses":[{"type":"BSD","url":"http://github.com/spumko/nipple/raw/master/LICENSE"}],"bugs":{"url":"https://github.com/spumko/nipple/issues"},"homepage":"https://github.com/spumko/nipple","_id":"nipple@2.5.3","_shasum":"e3dc4be09cfeb5c1c1c45f7454781d40a8efe3b8","_from":".","_npmVersion":"1.4.9","_npmUser":{"name":"hueniverse","email":"eran@hueniverse.com"},"maintainers":[{"name":"hueniverse","email":"eran@hammer.io"},{"name":"wyatt","email":"wpreul@gmail.com"},{"name":"zishanali","email":"ali.zishan2154@gmail.com"}],"dist":{"shasum":"e3dc4be09cfeb5c1c1c45f7454781d40a8efe3b8","size":43412,"noattachment":false,"key":"/nipple/-/nipple-2.5.3.tgz","tarball":"http://registry.cnpm.dingdandao.com/nipple/download/nipple-2.5.3.tgz"},"directories":{},"publish_time":1401833731180,"_cnpm_publish_time":1401833731180,"_hasShrinkwrap":false,"deprecated":"This module is no longer maintained and contains known bugs and security issues."},"2.5.2":{"name":"nipple","description":"HTTP Client Utilities","version":"2.5.2","repository":{"type":"git","url":"git://github.com/spumko/nipple"},"main":"index","keywords":["utilities","http","client"],"engines":{"node":">=0.10.22"},"dependencies":{"hoek":"2.x.x","boom":"2.x.x"},"devDependencies":{"lab":"3.x.x"},"scripts":{"test":"make test-cov"},"licenses":[{"type":"BSD","url":"http://github.com/spumko/nipple/raw/master/LICENSE"}],"bugs":{"url":"https://github.com/spumko/nipple/issues"},"homepage":"https://github.com/spumko/nipple","_id":"nipple@2.5.2","_shasum":"ab8d847d3fdfa17679ff2cefb63e0340de6992cd","_from":".","_npmVersion":"1.4.9","_npmUser":{"name":"hueniverse","email":"eran@hueniverse.com"},"maintainers":[{"name":"hueniverse","email":"eran@hammer.io"},{"name":"wyatt","email":"wpreul@gmail.com"},{"name":"zishanali","email":"ali.zishan2154@gmail.com"}],"dist":{"shasum":"ab8d847d3fdfa17679ff2cefb63e0340de6992cd","size":43283,"noattachment":false,"key":"/nipple/-/nipple-2.5.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/nipple/download/nipple-2.5.2.tgz"},"directories":{},"publish_time":1400624626144,"_cnpm_publish_time":1400624626144,"_hasShrinkwrap":false,"deprecated":"This module is no longer maintained and contains known bugs and security issues."},"2.5.1":{"name":"nipple","description":"HTTP Client Utilities","version":"2.5.1","repository":{"type":"git","url":"git://github.com/spumko/nipple"},"main":"index","keywords":["utilities","http","client"],"engines":{"node":">=0.10.22"},"dependencies":{"hoek":"2.x.x","boom":"2.x.x"},"devDependencies":{"lab":"3.x.x"},"scripts":{"test":"make test-cov"},"licenses":[{"type":"BSD","url":"http://github.com/spumko/nipple/raw/master/LICENSE"}],"bugs":{"url":"https://github.com/spumko/nipple/issues"},"homepage":"https://github.com/spumko/nipple","_id":"nipple@2.5.1","dist":{"shasum":"7dea3ae2f4234e71212faec205f40c7cf76da801","size":42546,"noattachment":false,"key":"/nipple/-/nipple-2.5.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/nipple/download/nipple-2.5.1.tgz"},"_from":".","_npmVersion":"1.4.3","_npmUser":{"name":"hueniverse","email":"eran@hueniverse.com"},"maintainers":[{"name":"hueniverse","email":"eran@hammer.io"},{"name":"wyatt","email":"wpreul@gmail.com"},{"name":"zishanali","email":"ali.zishan2154@gmail.com"}],"directories":{},"publish_time":1398717354525,"_cnpm_publish_time":1398717354525,"_hasShrinkwrap":false,"deprecated":"This module is no longer maintained and contains known bugs and security issues."},"2.5.0":{"name":"nipple","description":"HTTP Client Utilities","version":"2.5.0","repository":{"type":"git","url":"git://github.com/spumko/nipple"},"main":"index","keywords":["utilities","http","client"],"engines":{"node":">=0.10.22"},"dependencies":{"hoek":"2.x.x","boom":"2.x.x"},"devDependencies":{"lab":"3.x.x"},"scripts":{"test":"make test-cov"},"licenses":[{"type":"BSD","url":"http://github.com/spumko/nipple/raw/master/LICENSE"}],"bugs":{"url":"https://github.com/spumko/nipple/issues"},"homepage":"https://github.com/spumko/nipple","_id":"nipple@2.5.0","dist":{"shasum":"b7f65dbdea52b7aa3883865ef5e9f58d1df711ff","size":42347,"noattachment":false,"key":"/nipple/-/nipple-2.5.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/nipple/download/nipple-2.5.0.tgz"},"_from":".","_npmVersion":"1.4.3","_npmUser":{"name":"hueniverse","email":"eran@hueniverse.com"},"maintainers":[{"name":"hueniverse","email":"eran@hammer.io"},{"name":"wyatt","email":"wpreul@gmail.com"},{"name":"zishanali","email":"ali.zishan2154@gmail.com"}],"directories":{},"publish_time":1397190531777,"_cnpm_publish_time":1397190531777,"_hasShrinkwrap":false,"deprecated":"This module is no longer maintained and contains known bugs and security issues."},"2.4.0":{"name":"nipple","description":"HTTP Client Utilities","version":"2.4.0","repository":{"type":"git","url":"git://github.com/spumko/nipple"},"main":"index","keywords":["utilities","http","client"],"engines":{"node":">=0.10.22"},"dependencies":{"hoek":"1.x.x","boom":"2.x.x"},"devDependencies":{"lab":"1.x.x"},"scripts":{"test":"make test-cov"},"licenses":[{"type":"BSD","url":"http://github.com/spumko/nipple/raw/master/LICENSE"}],"bugs":{"url":"https://github.com/spumko/nipple/issues"},"homepage":"https://github.com/spumko/nipple","_id":"nipple@2.4.0","dist":{"shasum":"c48784e0cfcfef6b8821e0d428a56ceab396b3c6","size":42004,"noattachment":false,"key":"/nipple/-/nipple-2.4.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/nipple/download/nipple-2.4.0.tgz"},"_from":".","_npmVersion":"1.4.4","_npmUser":{"name":"hueniverse","email":"eran@hueniverse.com"},"maintainers":[{"name":"hueniverse","email":"eran@hammer.io"},{"name":"wyatt","email":"wpreul@gmail.com"},{"name":"zishanali","email":"ali.zishan2154@gmail.com"}],"directories":{},"publish_time":1394662292744,"_cnpm_publish_time":1394662292744,"_hasShrinkwrap":false,"deprecated":"This module is no longer maintained and contains known bugs and security issues."},"2.3.0":{"name":"nipple","description":"HTTP Client Utilities","version":"2.3.0","repository":{"type":"git","url":"git://github.com/spumko/nipple"},"main":"index","keywords":["utilities","http","client"],"engines":{"node":">=0.10.22"},"dependencies":{"hoek":"1.x.x","boom":"2.x.x"},"devDependencies":{"lab":"1.x.x"},"scripts":{"test":"make test-cov"},"licenses":[{"type":"BSD","url":"http://github.com/spumko/nipple/raw/master/LICENSE"}],"bugs":{"url":"https://github.com/spumko/nipple/issues"},"homepage":"https://github.com/spumko/nipple","_id":"nipple@2.3.0","dist":{"shasum":"57df48b35f44dec351d9d84fa44ccf20992579ae","size":41625,"noattachment":false,"key":"/nipple/-/nipple-2.3.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/nipple/download/nipple-2.3.0.tgz"},"_from":".","_npmVersion":"1.4.4","_npmUser":{"name":"hueniverse","email":"eran@hueniverse.com"},"maintainers":[{"name":"hueniverse","email":"eran@hammer.io"},{"name":"wyatt","email":"wpreul@gmail.com"},{"name":"zishanali","email":"ali.zishan2154@gmail.com"}],"directories":{},"publish_time":1394640729368,"_cnpm_publish_time":1394640729368,"_hasShrinkwrap":false,"deprecated":"This module is no longer maintained and contains known bugs and security issues."},"2.2.0":{"name":"nipple","description":"HTTP Client Utilities","version":"2.2.0","repository":{"type":"git","url":"git://github.com/spumko/nipple"},"main":"index","keywords":["utilities","http","client"],"engines":{"node":"0.10.x"},"dependencies":{"hoek":"1.x.x","boom":"2.x.x"},"devDependencies":{"lab":"1.x.x"},"scripts":{"test":"make test-cov"},"licenses":[{"type":"BSD","url":"http://github.com/spumko/nipple/raw/master/LICENSE"}],"bugs":{"url":"https://github.com/spumko/nipple/issues"},"homepage":"https://github.com/spumko/nipple","_id":"nipple@2.2.0","dist":{"shasum":"e885c05680a5d89f23731b9af72fa17feff07894","size":40783,"noattachment":false,"key":"/nipple/-/nipple-2.2.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/nipple/download/nipple-2.2.0.tgz"},"_from":".","_npmVersion":"1.3.25","_npmUser":{"name":"hueniverse","email":"eran@hueniverse.com"},"maintainers":[{"name":"hueniverse","email":"eran@hammer.io"},{"name":"wyatt","email":"wpreul@gmail.com"},{"name":"zishanali","email":"ali.zishan2154@gmail.com"}],"directories":{},"publish_time":1390682002606,"_cnpm_publish_time":1390682002606,"_hasShrinkwrap":false,"deprecated":"This module is no longer maintained and contains known bugs and security issues."},"2.1.0":{"name":"nipple","description":"HTTP Client Utilities","version":"2.1.0","repository":{"type":"git","url":"git://github.com/spumko/nipple"},"main":"index","keywords":["utilities","http","client"],"engines":{"node":"0.10.x"},"dependencies":{"hoek":"1.x.x","boom":"2.x.x"},"devDependencies":{"lab":"1.x.x"},"scripts":{"test":"make test-cov"},"licenses":[{"type":"BSD","url":"http://github.com/spumko/nipple/raw/master/LICENSE"}],"readmeFilename":"README.md","bugs":{"url":"https://github.com/spumko/nipple/issues"},"homepage":"https://github.com/spumko/nipple","_id":"nipple@2.1.0","dist":{"shasum":"c03424af1727772fae524a927092fc225dc3c8f5","size":40785,"noattachment":false,"key":"/nipple/-/nipple-2.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/nipple/download/nipple-2.1.0.tgz"},"_from":".","_npmVersion":"1.3.22","_npmUser":{"name":"hueniverse","email":"eran@hueniverse.com"},"maintainers":[{"name":"hueniverse","email":"eran@hammer.io"},{"name":"wyatt","email":"wpreul@gmail.com"},{"name":"zishanali","email":"ali.zishan2154@gmail.com"}],"directories":{},"publish_time":1390113544292,"_cnpm_publish_time":1390113544292,"_hasShrinkwrap":false,"deprecated":"This module is no longer maintained and contains known bugs and security issues."},"2.0.0":{"name":"nipple","description":"HTTP Client Utilities","version":"2.0.0","repository":{"type":"git","url":"git://github.com/spumko/nipple"},"main":"index","keywords":["utilities","http","client"],"engines":{"node":"0.10.x"},"dependencies":{"hoek":"1.x.x","boom":"2.x.x"},"devDependencies":{"lab":"1.x.x"},"scripts":{"test":"make test-cov"},"licenses":[{"type":"BSD","url":"http://github.com/spumko/nipple/raw/master/LICENSE"}],"readmeFilename":"README.md","bugs":{"url":"https://github.com/spumko/nipple/issues"},"homepage":"https://github.com/spumko/nipple","_id":"nipple@2.0.0","dist":{"shasum":"c66b1165e6f38401d12fb772033f1549a9f2950e","size":40487,"noattachment":false,"key":"/nipple/-/nipple-2.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/nipple/download/nipple-2.0.0.tgz"},"_from":".","_npmVersion":"1.3.14","_npmUser":{"name":"hueniverse","email":"eran@hueniverse.com"},"maintainers":[{"name":"hueniverse","email":"eran@hammer.io"},{"name":"wyatt","email":"wpreul@gmail.com"},{"name":"zishanali","email":"ali.zishan2154@gmail.com"}],"directories":{},"publish_time":1388990467095,"_cnpm_publish_time":1388990467095,"_hasShrinkwrap":false,"deprecated":"This module is no longer maintained and contains known bugs and security issues."},"1.0.0":{"name":"nipple","description":"HTTP Client Utilities","version":"1.0.0","repository":{"type":"git","url":"git://github.com/spumko/nipple"},"main":"index","keywords":["utilities","http","client"],"engines":{"node":"0.10.x"},"dependencies":{"hoek":"1.x.x","boom":"1.x.x"},"devDependencies":{"lab":"1.x.x"},"scripts":{"test":"make test-cov"},"licenses":[{"type":"BSD","url":"http://github.com/spumko/nipple/raw/master/LICENSE"}],"readmeFilename":"README.md","bugs":{"url":"https://github.com/spumko/nipple/issues"},"homepage":"https://github.com/spumko/nipple","_id":"nipple@1.0.0","dist":{"shasum":"f0ed462152d1bbbd8dee2b537b25b35010767582","size":39793,"noattachment":false,"key":"/nipple/-/nipple-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/nipple/download/nipple-1.0.0.tgz"},"_from":".","_npmVersion":"1.3.14","_npmUser":{"name":"hueniverse","email":"eran@hueniverse.com"},"maintainers":[{"name":"hueniverse","email":"eran@hammer.io"},{"name":"wyatt","email":"wpreul@gmail.com"},{"name":"zishanali","email":"ali.zishan2154@gmail.com"}],"directories":{},"publish_time":1387745070187,"_cnpm_publish_time":1387745070187,"_hasShrinkwrap":false,"deprecated":"This module is no longer maintained and contains known bugs and security issues."},"0.0.1":{"name":"nipple","description":"HTTP Client Utilities","version":"0.0.1","repository":{"type":"git","url":"git://github.com/spumko/nipple"},"main":"index","keywords":["utilities","http","client"],"engines":{"node":"0.10.x"},"dependencies":{"hoek":"1.x.x","boom":"1.x.x"},"devDependencies":{"lab":"1.x.x"},"scripts":{"test":"make test-cov"},"licenses":[{"type":"BSD","url":"http://github.com/spumko/nipple/raw/master/LICENSE"}],"readmeFilename":"README.md","bugs":{"url":"https://github.com/spumko/nipple/issues"},"homepage":"https://github.com/spumko/nipple","_id":"nipple@0.0.1","dist":{"shasum":"89d131c0ba16b400ae53dc8f8413cce8869942fd","size":39158,"noattachment":false,"key":"/nipple/-/nipple-0.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/nipple/download/nipple-0.0.1.tgz"},"_from":".","_npmVersion":"1.3.14","_npmUser":{"name":"hueniverse","email":"eran@hueniverse.com"},"maintainers":[{"name":"hueniverse","email":"eran@hammer.io"},{"name":"wyatt","email":"wpreul@gmail.com"},{"name":"zishanali","email":"ali.zishan2154@gmail.com"}],"directories":{},"publish_time":1387705328101,"_cnpm_publish_time":1387705328101,"_hasShrinkwrap":false,"deprecated":"This module is no longer maintained and contains known bugs and security issues."}},"readme":"#This project has been renamed to [wreck](http://npmjs.org/package/wreck).  Please update your references and use the new package.\n\n\n![nipple Logo](https://raw.github.com/hapijs/nipple/master/images/nipple.png)\n\nHTTP Client Utilities\n\n[![Build Status](https://secure.travis-ci.org/hapijs/nipple.png)](http://travis-ci.org/hapijs/nipple)\n\nLead Maintainer: [Wyatt Preul](https://github.com/wpreul)\n\n## Usage\n### Basic\n```javascript\nvar Nipple = require('nipple');\n\nNipple.get('https://google.com/', function (err, res, payload) {\n    /* do stuff */\n});\n```\n\n### Advanced\n```javascript\nvar Nipple = require('nipple');\n\nvar method = 'GET'; // GET, POST, PUT, DELETE\nvar uri    = 'https://google.com/';\nvar readableStream = Nipple.toReadableStream('foo=bar');\n\n// all attributes are optional\nvar options = {\n    payload:   readableStream || 'foo=bar' || new Buffer('foo=bar'),\n    headers:   { /* http headers */ },\n    redirects: 3,\n    timeout:   1000,    // 1 second, default: unlimited\n    maxBytes:  1048576, // 1 MB, default: unlimited\n    rejectUnauthorized: true || false,\n    downstreamRes: null,\n    agent: null         // Node Core http.Agent\n};\n\nvar optionalCallback = function (err, res) {\n\n    // buffer the response stream\n    Nipple.read(res, function (err, body) {\n        /* do stuff */\n    });\n};\n\nNipple.request(method, uri, options, optionalCallback);\n```\n\n\n### `request(method, uri, [options], [callback])`\n\nInitiate an HTTP request.\n- `method` - A string specifying the HTTP request method, defaulting to 'GET'.\n- `uri` - The URI of the requested resource.\n- `options` - An optional configuration object with the following optional keys:\n    - `payload` - The request body as string, Buffer, or Readable Stream.\n    - `headers` - An object containing request headers.\n    - `rejectUnauthorized` - [TLS](http://nodejs.org/api/tls.html) flag indicating\n      whether the client should reject a response from a server with invalid certificates.\n    - `redirects` - The maximum number of redirects to follow.\n    - `agent` - Node Core [http.Agent](http://nodejs.org/api/http.html#http_class_http_agent).\n    - `timeout` - The number of milliseconds to wait without receiving a response\n    before aborting the request. Defaults to unlimited.\n- `callback` - The optional callback function using the signature `function (err, response)` where:\n    - `err` - Any error that may have occurred during the handling of the request.\n    - `response` - The [HTTP Incoming Message](http://nodejs.org/api/http.html#http_http_incomingmessage)\n       object, which is also a readable stream.\n\n### `read(response, [options], callback)`\n- `response` - An HTTP Incoming Message object.\n- `options` - An optional configuration object with the following optional keys:\n    - `timeout` - The number of milliseconds to wait while reading data before\n    aborting handling of the response. Defaults to unlimited.\n    - `json` - A flag indicating whether the payload should be parsed as JSON\n    if the response indicates a JSON content-type.\n    - `maxBytes` - The maximum allowed response payload size. Defaults to unlimited.\n- `callback` - The callback function using the signature `function (err, payload)` where:\n    - `err` - Any error that may have occurred while reading the response.\n    - `payload` - The payload in the form of a Buffer or (optionally) parsed JavaScript object (JSON).\n\n### `get(uri, [options], callback)`\n\nConvenience method for GET operations.\n- `uri` - The URI of the requested resource.\n- `options` - Optional config object containing settings for both `request` and\n  `read` operations.\n- `callback` - The callback function using the signature `function (err, response, payload)` where:\n    - `err` - Any error that may have occurred during handling of the request.\n    - `response` - The [HTTP Incoming Message](http://nodejs.org/api/http.html#http_http_incomingmessage)\n       object, which is also a readable stream.\n    - `payload` - The payload in the form of a Buffer or (optionally) parsed JavaScript object (JSON).\n\n### `post(uri, [options], callback)`\n\nConvenience method for POST operations.\n- `uri` - The URI of the requested resource.\n- `options` - Optional config object containing settings for both `request` and\n  `read` operations.\n- `callback` - The callback function using the signature `function (err, response, payload)` where:\n    - `err` - Any error that may have occurred during handling of the request.\n    - `response` - The [HTTP Incoming Message](http://nodejs.org/api/http.html#http_http_incomingmessage)\n       object, which is also a readable stream.\n    - `payload` - The payload in the form of a Buffer or (optionally) parsed JavaScript object (JSON).\n\n### `put(uri, [options], callback)`\n\nConvenience method for PUT operations.\n- `uri` - The URI of the requested resource.\n- `options` - Optional config object containing settings for both `request` and\n  `read` operations.\n- `callback` - The callback function using the signature `function (err, response, payload)` where:\n    - `err` - Any error that may have occurred during handling of the request.\n    - `response` - The [HTTP Incoming Message](http://nodejs.org/api/http.html#http_http_incomingmessage)\n       object, which is also a readable stream.\n    - `payload` - The payload in the form of a Buffer or (optionally) parsed JavaScript object (JSON).\n\n### `delete(uri, [options], callback)`\n\nConvenience method for DELETE operations.\n- `uri` - The URI of the requested resource.\n- `options` - Optional config object containing settings for both `request` and\n  `read` operations.\n- `callback` - The callback function using the signature `function (err, response, payload)` where:\n    - `err` - Any error that may have occurred during handling of the request.\n    - `response` - The [HTTP Incoming Message](http://nodejs.org/api/http.html#http_http_incomingmessage)\n       object, which is also a readable stream.\n    - `payload` - The payload in the form of a Buffer or (optionally) parsed JavaScript object (JSON).\n\n\n### `toReadableStream(payload, [encoding])`\n\nCreates a [readable stream](http://nodejs.org/api/stream.html#stream_class_stream_readable)\nfor the provided payload and encoding.\n- `payload` - The Buffer or string to be wrapped in a readable stream.\n- `encoding` - The encoding to use. Must be a valid Buffer encoding, such as 'utf8' or 'ascii'.\n\n```javascript\nvar stream = Nipple.toReadableStream(new Buffer('Hello', 'ascii'), 'ascii');\nvar read = stream.read();\n// read -> 'Hello'\n```\n\n### `parseCacheControl(field)`\n\nParses the provided *cache-control* request header value into an object containing\na property for each directive and it's value. Boolean directives, such as \"private\"\nor \"no-cache\" will be set to the boolean `true`.\n- `field` - The header cache control value to be parsed.\n\n```javascript\nvar  result = Nipple.parseCacheControl('private, max-age=0, no-cache');\n// result.private -> true\n// result['max-age'] -> 0\n// result['no-cache'] -> true\n```\n","_attachments":{},"homepage":"https://github.com/hapijs/nipple","bugs":{"url":"https://github.com/hapijs/nipple/issues"}}