Skip to content
This repository has been archived by the owner on Feb 22, 2024. It is now read-only.

Streaming responses #26

Open
radu-matei opened this issue Mar 6, 2021 · 0 comments
Open

Streaming responses #26

radu-matei opened this issue Mar 6, 2021 · 0 comments
Labels
help wanted Extra attention is needed

Comments

@radu-matei
Copy link
Member

radu-matei commented Mar 6, 2021

Guests currently expect the runtime to finish writing the the entire request before reading it, and it would be very helpful to have support for streaming a response body.

One option would be an additional host function that would use the native HTTP library to read chunked responses, write the chunks in the memory, then populate the pointers representing the chunk start and size.
Then, the guest module would read until the size is not zero.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

1 participant