Skip to content

Commit

Permalink
Merge pull request #144 from petejkim/master
Browse files Browse the repository at this point in the history
added "form" option to readme
  • Loading branch information
mikeal committed Dec 30, 2011
2 parents edc19b5 + f51c32b commit 9eb5a18
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Expand Up @@ -149,6 +149,7 @@ The first argument can be either a url or an options object. The only required o
* `method` - http method, defaults to GET
* `headers` - http headers, defaults to {}
* `body` - entity body for POST and PUT requests. Must be buffer or string.
* `form` - sets `body` but to querystring representation of value and adds `Content-type: application/x-www-form-urlencoded; charset=utf-8` header.
* `json` - sets `body` but to JSON representation of value and adds `Content-type: application/json` header.
* `multipart` - (experimental) array of objects which contains their own headers and `body` attribute. Sends `multipart/related` request. See example below.
* `followRedirect` - follow HTTP 3xx responses as redirects. defaults to true.
Expand Down

0 comments on commit 9eb5a18

Please sign in to comment.