Closed hax closed 2 months ago
@hax Cool! Please send us a pull request, we love to merge it!
I support this, especially if its additive only (i.e. no breaking)
@fengmk2 have any plan to support this feature?
@fengmk2 have any plan to support this feature?
@hax has given the implementation code and you are welcome to submit a pull request.
Will have a PR for it soon
@fengmk2 i've done a PR for this i'm open to suggestions for improvement 😉
Describe the feature
Currently
response.body=
orctx.body=
support buffers, strings and Nodejs streams. I suggest we also add support to Web stream, Blob and Response (currently just fallback to json which break users expectation), maybe also all async iterables, Nodejs already have those APIs in global.This is my workaround, it works but it's better to support them in the core.
Checklist