Permalink
Browse files

Update README

  • Loading branch information...
pfleidi committed May 1, 2011
1 parent fb93a64 commit c54e96113431ced4ef775de3966a0df58af46276
Showing with 10 additions and 5 deletions.
  1. +10 −5 README.md
View
@@ -74,26 +74,31 @@ Creates a new client object with predefined options for each request made with t
The createClient call returns a Request object. On this object you can call a method for each supported HTTP verb.
-### client.get(url[, customHeaders])
+### client.get(url[, requestOptions])
Creates a HTTP GET request
-### client.put(url, payload[, customHeaders])
+### client.put(url [, requestOptions])
Creates a HTTP PUT request
-### client.post(url, payload[, customHeaders])
+### client.post(url, [, requestOptions])
Creates a HTTP POST request
-### client.delete(url[, customHeaders)]
+### client.delete(url[, requestOptions])
Creates a HTTP DELETE request
-### client.head(url[, customHeaders)]
+### client.head(url[, requestOptions)]
Creates a HTTP HEAD request
+### requestOptions hash
+
+* _headers_ see customHeaders
+* _payload_ content to transmit with PUT or POST request
+
### customHeaders hash
The customHeaders hash contains a set of HTTP headers which should be added to a request. They are optional. A working example would be:

0 comments on commit c54e961

Please sign in to comment.