Skip to content

Commit

Permalink
Update readme.md
Browse files Browse the repository at this point in the history
  • Loading branch information
szmarczak committed Feb 12, 2020
1 parent eeb2441 commit 9e4c18f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion readme.md
Expand Up @@ -248,7 +248,9 @@ Default: `'text'`

The parsing method. Can be `'text'`, `'json'` or `'buffer'`.

The promise also has `.text()`, `.json()` and `.buffer()` methods which return another Got promise returning the parsed body. It's like setting the options to `{responseType, resolveBodyOnly: true}` but without affecting the main Got promise. Example:
The promise also has `.text()`, `.json()` and `.buffer()` methods which return another Got promise returning the parsed body.\
It's like setting the options to `{responseType, resolveBodyOnly: true}` but without affecting the main Got promise.\
Example:

```js
(async () => {
Expand Down

0 comments on commit 9e4c18f

Please sign in to comment.