Skip to content

Commit d6c70f7

Browse files
committed
📘 doc(plugin/stream): add fetch proxy stream
1 parent 0df90a8 commit d6c70f7

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

docs/plugins/stream.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,11 +41,13 @@ new Elysia()
4141

4242
By default, `Stream` will return `Response` with `content-type` of `text/event-stream; charset=utf8`.
4343

44-
You can pass `Iterable` or `AsyncIterable` to `Stream` to stream content back to client.
45-
4644
## Constructor
4745
Below is the constructor parameter accept by `Stream`:
48-
- Automatic: Iterable / AsyncIterable
46+
- Automatic:
47+
- Iterable
48+
- AsyncIterable
49+
- ReadableStream
50+
- Response
4951
- Manual: Callback of `(stream: this) => unknown` or `undefined`
5052

5153
## Method

0 commit comments

Comments
 (0)