Commit Graph

12 Commits

Author SHA1 Message Date
Niklas Wolber
bb3d102108 wasm: don't send request body as plain uint8 array (#1358)
Co-authored-by: Niklas Wolber <niklas.wolber+git@octopost.eu>
2021-10-17 01:06:37 +00:00
crapStone
fead177093 Fix body to JsValue conversion (#1354)
* fix body to JsValue conversion

* add tests
2021-10-14 17:31:49 -07:00
Victor
d40276c0f0 wasm: add missing as_bytes method to Body implementation (#1270) 2021-10-07 19:04:18 +00:00
Jaehyeon Park
6d682b53e2 use Array when converting bytes into JsValue (#1341) 2021-10-04 17:16:41 -07:00
Saruniks
e6a1a09f09 Fix compile error when target is wasm and multipart feature is enabled. (#1296) 2021-06-30 19:13:42 -07:00
K.J. Valencik
c4388fcff9 WASM: Add try_clone implementations to Request and RequestBuilder (#1286)
Currently the wasm client does not implement `try_clone` on `Request` or `RequestBuilder` like the blocking and async clients.

This PR adds infallible `try_clone` implementations to the wasm client to improve the API parity.

*Note*: Even though these APIs are infallible on wasm (no streaming bodies), I chose to keep the API identical.
2021-06-14 10:36:56 -07:00
CfirTsabari
a856638316 Check format to all rs files under src (#1188)
fixed-format of all missing files.
Fixes seanmonstar/reqwest#1186
2021-03-01 17:06:14 -08:00
nickelc
afed48cafd Make multipart an optional feature (default off) (#1128) 2021-01-04 13:20:17 -08:00
Jonas Platte
d42385e7f2 wasm: Omit request body if it's empty (#1012)
This should allow creating GET and HEAD requests from http::Request
2020-08-20 15:42:48 -07:00
Enno Boland
a800202384 Add multipart for WASM (#966) 2020-07-08 13:10:23 -07:00
John Gallagher
f6f81f9cc1 wasm: Add request body in the form of Bytes (#696)
* Add body bytes

* Add example and header creation code
2019-11-04 09:17:05 -08:00
Sean McArthur
932defd879 Introduce unstable, incomplete WASM support 2019-09-26 10:01:08 -07:00