Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

docs

  • Loading branch information...
commit ff681ccf3364d1b3316aa31c116c6287eb2eb6d4 1 parent 6732a11
@tj tj authored
Showing with 1 addition and 12 deletions.
  1. +1 −12 Readme.md
View
13 Readme.md
@@ -48,7 +48,7 @@ $.ajax({
});
```
- Not only is it ugly, it's opinionated, jQuery likes to treat {4,5}xx responses specifically, for example you cannot (easily at least) receive a parsed JSON response for say "400 Bad Request". This same request would look like this:
+ Not only is it ugly it's pretty opinionated, jQuery likes to special-case {4,5}xx, for example you cannot (easily at least) receive a parsed JSON response for say "400 Bad Request". This same request would look like this:
```js
request
@@ -61,17 +61,6 @@ request
});
```
-or we can pass data to `.send()` which combines `.data()` and `.end()`, which is really ugly unless you are passing a variable:
-
-```js
-request
- .post('/api/pet')
- .set('X-API-Key', 'foobar')
- .send(cat, function(res){
-
- });
-```
-
building on the existing API internally we also provide something similar to `$.post()` for those times in life where your interactions are very basic:
```js
Please sign in to comment.
Something went wrong with that request. Please try again.