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
16
examples/wasm_header/Cargo.toml
Normal file
16
examples/wasm_header/Cargo.toml
Normal file
@@ -0,0 +1,16 @@
|
||||
[package]
|
||||
name = "wasm"
|
||||
version = "0.1.0"
|
||||
authors = ["John Gallagher <john.willis.gallagher@gmail.com>"]
|
||||
edition = "2018"
|
||||
|
||||
# Config mostly pulled from: https://github.com/rustwasm/wasm-bindgen/blob/master/examples/fetch/Cargo.toml
|
||||
|
||||
[lib]
|
||||
crate-type = ["cdylib"]
|
||||
|
||||
[dependencies]
|
||||
reqwest = {path = "../../"}
|
||||
wasm-bindgen-futures = "0.4.1"
|
||||
wasm-bindgen = { version = "0.2.51", features = ["serde-serialize"] }
|
||||
|
||||
Reference in New Issue
Block a user