D
Deno

help

Why doesn't POST response from serveTls support streaming chunks from a ReadableStream?

Gguest2713147/16/2023
We can POST a ReadableStream to a serveTls server, however when we respond with a ReadableStream the chunks don't actually get sent to the client until we call controller.close() on the client. The means we have to make a POST request first, then a GET request to write to an upload stream and read the response stream from the server at the same time. Some code https://www.reddit.com/r/Deno/comments/150wet7/comment/js69iu6/?context=3.

Looking for more? Join the community!