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

Consider mimicking the browser's fetch API for http_module #30

Open
joepio opened this issue Jan 11, 2022 · 2 comments
Open

Consider mimicking the browser's fetch API for http_module #30

joepio opened this issue Jan 11, 2022 · 2 comments
Assignees

Comments

@joepio
Copy link

joepio commented Jan 11, 2022

Hi there, I'm really impressed with this project! I'm looking for a WASM or JS runtime to create a plugin system for Atomic Server, and this looks very interesting.

I'd love to be able to use my existing JS / Node library in here, but that one currently depends on having some form of fetch - either from window or from node.

I was wondering whether it would be possible to mimick the browser's fetch API for the GET / POST part of the http_module, so it would be a drop-in replacement. That would allow users to run many existing libraries in this runtime.

Good luck with this project!

@juntao
Copy link
Member

juntao commented Jan 28, 2022

Hi @joepio

This is partially done. Please give it a try and let us know your thoughts.

https://wasmedge.org/book/en/dev/js/fetch.html

Would love to see applications you build with it!

@joepio
Copy link
Author

joepio commented Jan 28, 2022

That's great to hear! I'll definitely give it a try soon :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants