Skip to content

Commit 7d89359

Browse files
committed
docs: extend fetch.pipe() descr
1 parent 5ab71ce commit 7d89359

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

docs/api.md

+3-1
Original file line numberDiff line numberDiff line change
@@ -140,9 +140,11 @@ package.
140140

141141
```js
142142
const resp = await fetch('https://medv.io')
143+
const json = await resp.json()
143144
```
144145

145-
We've attached a minor adjustment to the `fetch` API to make it more zx-friendly in pipe chains:
146+
For some cases, fetch `text()` or `json()` can produce extremely large output that exceeds the string size limit.
147+
Streams are just for that, so we've attached a minor adjustment to the `fetch` API to make it more pipe friendly.
146148

147149
```js
148150
const p1 = fetch('https://example.com').pipe($`cat`)

0 commit comments

Comments
 (0)