That would be utterly convenient to quickly test multithread WASM applications...
I'm currently using ExpressJS for that, but it feels overkill..
31–40 of 100 posts
That would be utterly convenient to quickly test multithread WASM applications...
I'm currently using ExpressJS for that, but it feels overkill..
$ emrun --port 8000 . # Handles WASM; most others don't.[1] [1] Emscripten's emsdk includes emrun, which actually serves WASM files with the correct MIME type out-of-the-box, unlike the python2 and python3 servers and most others.
Anybody has a one-liner allowing CORS (e.g. through options)? That would be utterly convenient to quickly test multithread WASM applications... I'm currently using ExpressJS for that, but it feels overkill..
But, if you still need it, the http-server program has a --cors flag to enable wildcard CORS.
Anybody has a one-liner allowing CORS (e.g. through options)? That would be utterly convenient to quickly test multithread WASM applications... I'm currently using ExpressJS for that, but it feels overkill..
I think these are meant for development setups, which you normally run in a localhost context, meaning you most likely won't have to deal with CORS. But, if you still need it, the http-server program has a --cors flag to enable wildcard CORS.
> socat TCP4-LISTEN:50000,fork EXEC:/usr/bin/ifconfig
> curl --http0.9 localhost:50000
Hmmm, does http v0.9 count?
$ sthttpd/sbin/thttpd -i thttpd.pid -l `pwd`/access.log -p 8080 -c '/bin/*' npx serve
is very easyBy that logic, apache is a one-liner.