From fc6123514397da5cb98a3b9bc27f3c6fea3acbc9 Mon Sep 17 00:00:00 2001 From: Sven Slootweg Date: Sat, 11 Apr 2015 20:35:02 +0200 Subject: [PATCH] Clarification in docs regarding convenience methods --- README.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index f5d3453..b0357d1 100644 --- a/README.md +++ b/README.md @@ -177,7 +177,7 @@ The various error types are documented at the bottom of this README. ### bhttp.put(url, [data, [options, [callback]]]) ### bhttp.patch(url, [data, [options, [callback]]]) -Convenience methods that pre-set the request method, and automatically send along the payload using the correct options. +Convenience methods that pre-set the request method, and automatically send along the payload using the correct options for `bhttp.request`. * __url__: The URL to request, with protocol. When using HTTPS, please be sure to read the 'Caveats' section. * __data__: *Optional, only for POST/PUT/PATCH.* The payload to send along. @@ -190,6 +190,8 @@ The `data` payload can be one of the following things: * __A stream__: The entire stream will be written to the request as-is. * __An object__: Will be encoded as form data, and can contain any combination of Strings, Buffers, streams, and arrays of any of those. When only strings are used, the form data is querystring-encoded - if Buffers or streams are used, it will be encoded as multipart/form-data. +Further documentation for these methods, such as the response attributes, can be found in the below section for `bhttp.request`. + ### bhttp.request(url, [options, [callback]]) Makes a request, and returns the response object asynchronously. The response object is a standard `http.IncomingMessages` with a few additional properties (documented below the argument list).