21 Commits

Author SHA1 Message Date
Jonas Platte
2881354c90 Fix more clippy warnings 2021-08-26 13:42:46 -07:00
messense
a19eb34196 Update to tokio 1.0, bytes 1.0 (#1076)
Co-authored-by: Wim Looman <git@nemo157.com>
Co-authored-by: Paolo Barbolini <paolo@paolo565.org>
2020-12-30 09:57:50 -08:00
stevelr
4fe07d81cf add ClientBuilder.default_headers() for wasm32 target (#1084) 2020-11-16 13:09:47 -08:00
Gleb Pomykalov
0f32c4a01a Update to hyper 0.13 2019-12-10 16:24:05 -08:00
Sean McArthur
f4100e4148 Rewrite tests with a hyper server instead of raw TCP
This makes the tests much less brittle, by not depending on the exact
order of the HTTP headers, nor always requiring to check for every
single header.
2019-09-23 14:06:01 -07:00
danieleades
cf8944a0f0 cargo fmt (#604)
Run rustfmt and setup CI to check for it.
2019-08-29 09:52:39 -07:00
Daniel Eades
4bb4149b63 remove unnecessary double-colons 2019-08-16 12:59:55 -07:00
Daniel Eades
3ba4b6eadf port all optional features to 2018-edition 2019-08-16 12:59:55 -07:00
Daniel Eades
86d9cbc66e cargo fix --edition 2019-08-16 12:59:55 -07:00
Sean McArthur
7eae51f56e add form-urlencoded unit test 2019-02-13 11:46:12 -08:00
Sean McArthur
acd23d057a fix tests generating an extra blank Txn for each server 2018-10-17 14:17:08 -07:00
Sean McArthur
512b80a3ad ensure async request is canceled if there is a timeout 2018-10-17 13:38:54 -07:00
Sean McArthur
2698148743 fix improper handling of request body backpressure
Closes #348
2018-09-19 14:20:12 -07:00
Sean McArthur
7db860759d Revert "Merge pull request #232 from tafia/hyper-proxy"
This reverts commit b09b8620a6, reversing
changes made to abfcd2796e.
2018-02-15 12:13:33 -08:00
Johann Tuffe
2f403175dc uses hyper-proxy 0.3.0 2017-12-19 15:23:39 +08:00
Johann Tuffe
07f89984c4 store intercept to set_proxy on requests 2017-12-18 17:53:17 +08:00
knight42
07d6bca08f fix: tests::support::server
If the length of expected header is accidentally larger than the length
of the actual header, `socket.read()` will keep pulling bytes from the
socket which could no longer produce any, hence the later calls of
`socket.read` will return a `WouldBlock` Error.
2017-10-22 13:27:20 +08:00
Sean McArthur
fe8c7a2d01 Merge pull request #165 from KodrAus/feat/async-decoder
Support Async Gzip Decoding
2017-08-21 10:57:55 -07:00
Sean McArthur
0460d5756c fix flaky redirect test when first read doesn't include full body 2017-08-18 13:59:34 -07:00
Ashley Mannix
e2fa97254e support async gzip decoding 2017-08-18 19:43:06 +10:00
Sean McArthur
665b4fe718 upgrade hyper to v0.11 2017-06-21 09:47:21 -07:00