Skip to content
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

Add support for wasi-http #2350

Closed
flash1293 opened this issue Dec 16, 2024 · 1 comment
Closed

Add support for wasi-http #2350

flash1293 opened this issue Dec 16, 2024 · 1 comment
Labels
enhancement New feature or request

Comments

@flash1293
Copy link

Is your feature request related to a problem? Please describe.

I want to be able to run WASM programs leveraging wasi-http to make outgoing http calls.

Describe the solution you'd like

Similarly to the file system integration, I would like to be able to enable this part of WASI through the config and be able to place restrictions - not sure how that would look like, maybe a list of hosts:

rooted, err := fs.Sub(catFS, "testdata")
config := wazero.NewModuleConfig().
   WithStdout(os.Stdout).
   WithStderr(os.Stderr).
   WithFS(rooted)
   WithHttp(WazeroHttpOptions{ allowed_hosts: []string{"localhost"} })

Describe alternatives you've considered

https://github.com/brendandburns/wazero-http implements some versions of this, but the API is limited and this should be part of the core functionality

Additional context
Add any other context or screenshots about the feature request here.

@flash1293 flash1293 added the enhancement New feature or request label Dec 16, 2024
@mathetake
Copy link
Member

definitely no until it becomes the w3c recommendation. see #2200 #2289

@mathetake mathetake closed this as not planned Won't fix, can't repro, duplicate, stale Dec 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants