You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Make transform function behave differently when the input is Stream
rewrite.isStreaming// falserewrite.transform(response.bodyasReadableStream)rewrite.isStreaming// truerewrite.peek()// some stringawaitsleep(600*ms)rewrite.peek()// some string + additional stringrewrite.flush()// end streamrewrite.isStreaming// falserewrite.peek()// empty string
it will flush and immediately pass the output when calling .then
rewrite.isStreaming// falseawaitrewrite.transform(response.bodyasReadableStream)// some stringrewrite.isStreaming// falserewrite.peek()// empty string
The text was updated successfully, but these errors were encountered:
DrSensor
changed the title
transform Response object
transform Stream
Feb 7, 2023
Make transform function behave differently when the input is Stream
it will flush and immediately pass the output when calling
.then
The text was updated successfully, but these errors were encountered: