Permalink
Browse files

Update README.md

  • Loading branch information...
1 parent 4fe9cc4 commit 14e86ea0f9afa3f3012a5d1251060b11ce711c3f @disfated disfated committed Jan 8, 2012
Showing with 3 additions and 4 deletions.
  1. +3 −4 README.md
View
@@ -36,9 +36,9 @@ Basic method to make a request of any type. The function returns a RestRequest o
* `complete: function(data, response)` - emitted when the request has finished whether it was successful or not. Gets passed the response data and the response object as arguments. If some error has occurred, `data` is always instance of `Error`.
* `success: function(data, response)` - emitted when the request was successful. Gets passed the response data and the response object as arguments.
-* `fail`: function(data, response)` - emitted when the request was successful, but 4xx status code returned. Gets passed the response data and the response object as arguments.
-* `error`: function(err, response)` - emitted when some errors have occurred (eg. connection aborted, parse, encoding, decoding failed or some other unhandled errors). Gets passed the `Error` object and the response object (when available) as arguments.
-* `abort`: function()` - emitted when `request.abort()` is called.
+* `fail: function(data, response)` - emitted when the request was successful, but 4xx status code returned. Gets passed the response data and the response object as arguments.
+* `error: function(err, response)` - emitted when some errors have occurred (eg. connection aborted, parse, encoding, decoding failed or some other unhandled errors). Gets passed the `Error` object and the response object (when available) as arguments.
+* `abort: function()` - emitted when `request.abort()` is called.
* `2XX`, `3XX`, `4XX`, `5XX: function(data, response)` - emitted for all requests with response codes in the range (eg. `2XX` emitted for 200, 201, 203).
* <code><i>actual response code</i>: function(data, response)<code> - emitted for every single response code (eg. 404, 201, etc).
@@ -197,5 +197,4 @@ nodeunit test/restler.js
TODO
----
-* Deal with no utf-8 response bodies
* What do you need? Let me know or fork.

0 comments on commit 14e86ea

Please sign in to comment.