bytecodealliance / ComponentizeJS

JS -> WebAssembly Component
Apache License 2.0
241 stars 32 forks source link

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

Closed karthik2804 closed 4 months ago

karthik2804 commented 5 months ago

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.

https://github.com/bytecodealliance/ComponentizeJS/blob/63e3453bab9513296ad3ec65607540288487bf93/crates/spidermonkey-embedding-splicer/src/splice.rs#L56-L63

guybedford commented 4 months ago

Added in https://github.com/bytecodealliance/ComponentizeJS/pull/122.