Jeremiah Senkpiel
Jeremiah Senkpiel
We are trying to avoid pulling in so many dependencies cross-platform. The wasm dependencies are some of the heaviest.
Sure but this is unlikely to re-become the default - the complaint was it wasn't the default and that a flag had to be used, was it not? Again doing...
``` RUST_BACKTRACE=1 longboard GET http://orgonelab.org Error: could not decode body as UTF-8 ```
I think the existing escape hatch (read to byte buffer, do manual lossy to string) probably covers our bases here. The docs on `body_string()` could probably be clearer, though.
#192 also proposes moving the middleware onto the `Client` like this.
See the PR for further follow-up: https://github.com/http-rs/surf/pull/223
timeouts will be done when https://github.com/http-rs/surf/pull/310 lands
Could you try with this in your `Cargo.toml`? ```toml [dependencies] surf = { version = "2.0.0-alpha.4", features = ["h1-client"] } ```
@yoshuawuyts
For what it's worth, this is a programmer error: ```rust client.head("http://a.b").recv_string().await?; ``` It is a bug that this panics but will definitely continue to fail. `HEAD` cannot have a body,...