wasm: Add request body in the form of Bytes (#696)
* Add body bytes * Add example and header creation code
This commit is contained in:
committed by
Sean McArthur
parent
b24b0be461
commit
f6f81f9cc1
9
examples/wasm_header/index.js
Normal file
9
examples/wasm_header/index.js
Normal file
@@ -0,0 +1,9 @@
|
||||
const rust = import('./pkg');
|
||||
|
||||
rust
|
||||
.then(m => {
|
||||
return m.run().then((data) => {
|
||||
console.log(data);
|
||||
})
|
||||
})
|
||||
.catch(console.error);
|
||||
Reference in New Issue
Block a user