sdk-rust/example-projects/reqwest-wasm-example
Jim Crossley 51b49f1335 New feature: cloudevents-reqwest
Conditionally compile reqwest module when enabled

This resulted in a naming conflict between my desired feature name,
"reqwest", and the optional dependency itself. So I adopted the
convention of prefixing the features with "cloudevents-".

Signed-off-by: Jim Crossley <jim@crossleys.org>
2021-06-25 10:12:23 -04:00
..
src New feature: cloudevents-reqwest 2021-06-25 10:12:23 -04:00
.gitignore Reqwest wasm example (#43) 2020-05-20 11:37:55 +02:00
Cargo.toml New feature: cloudevents-reqwest 2021-06-25 10:12:23 -04: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 Bump url-parse in /example-projects/reqwest-wasm-example (#122) 2021-05-17 11:05:15 +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.