An open API service indexing awesome lists of open source software.

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.

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.

[![Open in GitHub Codespaces](https://github.com/codespaces/badge.svg)](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)