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

Optionally allow using fetchEvent to handle wasi:http/incomingHandler@0.2.0#handle #114

Open
karthik2804 opened this issue Jun 3, 2024 · 0 comments · May be fixed by #116
Open

Optionally allow using fetchEvent to handle wasi:http/incomingHandler@0.2.0#handle #114

karthik2804 opened this issue Jun 3, 2024 · 0 comments · May be fixed by #116
Labels
enhancement New feature or request

Comments

@karthik2804
Copy link
Contributor

karthik2804 commented Jun 3, 2024

As the title suggests, it would optionally use the fetchEvent that Starlingmonkey provides to handle incoming wasi-http requests. The upside to this would be to write apps that target a more idiomatic API which developers will be familiar with.

if let Ok(serve) = module
.exports
.get_func("wasi:http/incoming-handler@0.2.0#handle")
{
let expt = module.exports.get_exported_func(serve).unwrap();
module.exports.delete(expt.id());
module.funcs.delete(serve);
}

@guybedford guybedford added the enhancement New feature or request label Jun 3, 2024
@karthik2804 karthik2804 linked a pull request Jun 17, 2024 that will close this issue
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

Successfully merging a pull request may close this issue.

2 participants