sdk-rust/example-projects/reqwest-wasm-example
Francesco Guardiani 594e0a5467
Reqwest wasm example (#43)
* Fixed cloudevents sdk to compile with wasm

Signed-off-by: Francesco Guardiani <francescoguard@gmail.com>

* Fixed warning

Signed-off-by: Francesco Guardiani <francescoguard@gmail.com>

* cargo fmt

Signed-off-by: Francesco Guardiani <francescoguard@gmail.com>

* Fixed

Signed-off-by: Francesco Guardiani <francescoguard@gmail.com>

* Added cors to actix-web example

Signed-off-by: Francesco Guardiani <francescoguard@gmail.com>

* Added reqwest wasm example

Signed-off-by: Francesco Guardiani <francescoguard@gmail.com>
2020-05-20 11:37:55 +02:00
..
src Reqwest wasm example (#43) 2020-05-20 11:37:55 +02:00
.gitignore Reqwest wasm example (#43) 2020-05-20 11:37:55 +02:00
Cargo.toml Reqwest wasm example (#43) 2020-05-20 11:37:55 +02:00
README.md Reqwest wasm example (#43) 2020-05-20 11:37:55 +02:00
index.html Reqwest wasm example (#43) 2020-05-20 11:37:55 +02:00
index.js Reqwest wasm example (#43) 2020-05-20 11:37:55 +02:00
package-lock.json Reqwest wasm example (#43) 2020-05-20 11:37:55 +02:00
package.json Reqwest wasm example (#43) 2020-05-20 11:37:55 +02:00
webpack.config.js Reqwest wasm example (#43) 2020-05-20 11:37:55 +02:00

README.md

Example usage of CLoudEvents sdk/Reqwest from WASM

Install the dependencies with:

npm install

Then build the example locally with:

npm run serve

and then visiting http://localhost:8080 in a browser should run the example!

This example is loosely based off of this example, an example usage of fetch from wasm-bindgen, and from reqwest repo.