Comparing version 6.1.0 to 6.2.0
@@ -424,3 +424,8 @@ | ||
internals.Client.prototype.patch = function (uri, options, callback) { | ||
return this._shortcutWrap('PATCH', uri, options, callback); | ||
}; | ||
internals.Client.prototype.put = function (uri, options, callback) { | ||
@@ -427,0 +432,0 @@ |
{ | ||
"name": "wreck", | ||
"description": "HTTP Client Utilities", | ||
"version": "6.1.0", | ||
"version": "6.2.0", | ||
"repository": "git://github.com/hapijs/wreck", | ||
@@ -6,0 +6,0 @@ "main": "lib/index", |
@@ -148,3 +148,17 @@ ![wreck Logo](https://raw.github.com/hapijs/wreck/master/images/wreck.png) | ||
### `patch(uri, [options], callback)` | ||
Convenience method for PATCH operations. | ||
- `uri` - The URI of the requested resource. | ||
- `options` - Optional config object containing settings for both `request` and | ||
`read` operations. | ||
- `callback` - The callback function using the signature `function (err, response, payload)` where: | ||
- `err` - Any error that may have occurred during handling of the request. | ||
- `response` - The [HTTP Incoming Message](http://nodejs.org/api/http.html#http_http_incomingmessage) | ||
object, which is also a readable stream. | ||
- `payload` - The payload in the form of a Buffer or (optionally) parsed JavaScript object (JSON). | ||
Returns an instance of the node.js [ClientRequest](http://nodejs.org/api/http.html#http_class_http_clientrequest) object. | ||
### `put(uri, [options], callback)` | ||
@@ -151,0 +165,0 @@ |
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
130076
1814
254