Skip to content

Commit

Permalink
doc
Browse files Browse the repository at this point in the history
  • Loading branch information
abernier committed Mar 3, 2022
1 parent c6b8813 commit 71669e4
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions README.md
Expand Up @@ -38,6 +38,12 @@ req.uest(options, (er, resp, body) => {})
- `er` -- when an error occurs or `resp.statusCode >= 400`, see: [http.ClientRequest](http://nodejs.org/api/http.html#http_class_http_clientrequest)
- **`er.status`** holds the response statusCode, for example: `404` or `409`...

It also supports `await`:

```
const [resp, body] = await req.uest(options)
```

## Example

```js
Expand Down

0 comments on commit 71669e4

Please sign in to comment.