Skip to content

Latest commit

 

History

History

http-client

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 

HTTP Client WASM sample

A simple http client example for WASM.
The app retrieves its global IP address, and display it on the terminal.

Build

Build a docker image for WASM

cd http-client
docker build --platform=wasi/wasm32 -t http-client-wasm .

Run

Run the container with io.containerd.wasmedge.v1 runtime.

docker run --rm --platform=wasi/wasm32 --runtime=io.containerd.wasmedge.v1 --name=http-client-wasm http-client-wasm:latest