https://github.com/wasm-outbound-http-examples/emscripten
Make HTTP requests from inside WASM using Emscripten. Demo and devcontainer.
https://github.com/wasm-outbound-http-examples/emscripten
emscripten http-client http-request wasm webassembly
Last synced: 7 months ago
JSON representation
Make HTTP requests from inside WASM using Emscripten. Demo and devcontainer.
- Host: GitHub
- URL: https://github.com/wasm-outbound-http-examples/emscripten
- Owner: wasm-outbound-http-examples
- License: mit
- Created: 2024-06-17T17:47:32.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-06-21T15:24:40.000Z (over 1 year ago)
- Last Synced: 2025-03-03T08:14:52.540Z (about 1 year ago)
- Topics: emscripten, http-client, http-request, wasm, webassembly
- Language: HTML
- Homepage: https://wasm-outbound-http-examples.github.io/emscripten/
- Size: 66.4 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Make HTTP requests from inside WASM in C using Emscripten
This devcontainer is configured to provide you a latest stable version of Emscripten.
[](https://codespaces.new/wasm-outbound-http-examples/emscripten)
The following examples allow you to build a browser ones (the same as related demo).
#
Example
Description
Browser demo
1
[Using callbacks](browser-callbacks/README.md)
`emscripten_fetch()` with `onsuccess` and `onerror` callbacks
[Demo](https://wasm-outbound-http-examples.github.io/emscripten/callbacks/)
2
[EMSCRIPTEN_FETCH_SYNCHRONOUS](browser-sync-xhr/README.md)
`emscripten_fetch()` employing sync XHR
[Demo](https://wasm-outbound-http-examples.github.io/emscripten/sync-xhr/)
Created for (wannabe-awesome) [list](https://github.com/vasilev/HTTP-request-from-inside-WASM)