Skip to content
Discussion options

You must be logged in to vote

You are not missing a Pumpkin-specific HTTP function. The host side is wired for the standard WASI HTTP interface: the permission constant is http.outbound, and the loader sets wasi_http_hooks.allow_outbound = true when that permission is granted (host code, permission definition).

The missing piece is guest-side ergonomics. Pumpkin's domain WIT files do not need to redefine wasi:http; a component can import the standard wasi:http/outgoing-handler interface separately. However, the plugin crate currently does not appear to expose a ready-made client or example for doing that. A normal native reqwest build will not automatically become a WASI HTTP component client.

The intended architectur…

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@Kleinmarb
Comment options

Answer selected by Kleinmarb
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants