Skip to content

Commit a49b69f

Browse files
authored
Update index.mdx to use the module syntax
1 parent eb9d463 commit a49b69f

File tree

1 file changed

+1
-1
lines changed
  • src/content/docs/workers/runtime-apis/streams

1 file changed

+1
-1
lines changed

src/content/docs/workers/runtime-apis/streams/index.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ The [Streams API](https://developer.mozilla.org/en-US/docs/Web/API/Streams_API)
1515

1616
<DirectoryListing />
1717

18-
Workers do not need to prepare an entire response body before delivering it to `event.respondWith()`. You can use [`TransformStream`](/workers/runtime-apis/streams/transformstream/) to stream a response body after sending the front matter (that is, HTTP status line and headers). This allows you to minimize:
18+
Workers do not need to prepare an entire response body before returning a `Response`. You can use [`TransformStream`](/workers/runtime-apis/streams/transformstream/) to stream a response body after sending the front matter (that is, HTTP status line and headers). This allows you to minimize:
1919

2020
* The visitor’s time-to-first-byte.
2121
* The buffering done in the Worker.

0 commit comments

Comments
 (0)