-
Notifications
You must be signed in to change notification settings - Fork 1.6k
feat(p3-http): implement consume-body changes
#11653
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(p3-http): implement consume-body changes
#11653
Conversation
c933bdb to
304d730
Compare
304d730 to
b7a246a
Compare
b7a246a to
263e690
Compare
Signed-off-by: Roman Volosatovs <rvolosatovs@riseup.net>
263e690 to
163c277
Compare
|
As discussed earlier today, we're waiting for a new wasip3 RC (cc @yoshuawuyts), which will be pulled in this PR, but other than that it is ready for review |
alexcrichton
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks! Will hold off on merging till we sort out the rc version for WASI
* Use the 2025-09-16 tag instead of 2025-08-15. * Pulls in `wasi:http` updates "officially". * Pulls in minor `wasi:cli` updates, and that's implemented here as well.
|
Ok I've pushed up an update to the official tag here plus the assorted CLI changes. @rvolosatovs or @dicej mind taking a look at my changes before merging? |
* feat(p3-http): implement `consume-body` changes Signed-off-by: Roman Volosatovs <rvolosatovs@riseup.net> * Update WITs to the latest snapshot * Use the 2025-09-16 tag instead of 2025-08-15. * Pulls in `wasi:http` updates "officially". * Pulls in minor `wasi:cli` updates, and that's implemented here as well. --------- Signed-off-by: Roman Volosatovs <rvolosatovs@riseup.net> Co-authored-by: Alex Crichton <alex@alexcrichton.com>
* async: add stream/future producers and blanket impl for `Future` (#11684) * async: add `EmptyProducer` and blanket impl for `Future` Signed-off-by: Roman Volosatovs <rvolosatovs@riseup.net> * move more future/stream producers to `wasmtime` crate Signed-off-by: Roman Volosatovs <rvolosatovs@riseup.net> * async: allow blanket `Future` impl to trap Signed-off-by: Roman Volosatovs <rvolosatovs@riseup.net> * async: remove the need for `{Ready,Empty}Producer` Signed-off-by: Roman Volosatovs <rvolosatovs@riseup.net> --------- Signed-off-by: Roman Volosatovs <rvolosatovs@riseup.net> * Fix a missing outparam write in the p1 adapter (#11702) This fixes an issue found through #11701, notably the "release mode infinite loops" behavior that was seen. The cause was when `fd_readdir` returned after skipping all directory entries it forgot to write the final `*bufused = 0` out-param in the early-exit, unlike the end of the function which already sets this. * feat(p3-http): implement `consume-body` changes (#11653) * feat(p3-http): implement `consume-body` changes Signed-off-by: Roman Volosatovs <rvolosatovs@riseup.net> * Update WITs to the latest snapshot * Use the 2025-09-16 tag instead of 2025-08-15. * Pulls in `wasi:http` updates "officially". * Pulls in minor `wasi:cli` updates, and that's implemented here as well. --------- Signed-off-by: Roman Volosatovs <rvolosatovs@riseup.net> Co-authored-by: Alex Crichton <alex@alexcrichton.com> --------- Signed-off-by: Roman Volosatovs <rvolosatovs@riseup.net> Co-authored-by: Roman Volosatovs <rvolosatovs@users.noreply.github.com>
* feat(p3-http): implement `consume-body` changes Signed-off-by: Roman Volosatovs <rvolosatovs@riseup.net> * Update WITs to the latest snapshot * Use the 2025-09-16 tag instead of 2025-08-15. * Pulls in `wasi:http` updates "officially". * Pulls in minor `wasi:cli` updates, and that's implemented here as well. --------- Signed-off-by: Roman Volosatovs <rvolosatovs@riseup.net> Co-authored-by: Alex Crichton <alex@alexcrichton.com>
Implement changes to
consume-bodyas proposed in WebAssembly/wasi-http#185 and discussed in WebAssembly/wasi-http#176As discussed on Monday, this PR will only be merged once WebAssembly/wasi-http#185 is merged and a new RC is cut