Sean McArthur
23e13304ef
Disable trust-dns on Windows
...
Closes #431
2019-01-11 12:34:03 -08:00
Sean McArthur
ed1a6d4614
Turn off verbose flag on AppVeyor
2019-01-11 11:42:27 -08:00
Sean McArthur
a8174feca4
v0.9.7
2019-01-10 13:58:23 -08:00
Sean McArthur
313d49c47a
update AppVeyor badge to use master branch
2019-01-10 13:55:50 -08:00
Sean McArthur
2649f9ab56
Remove trust-dns when target_os is Android
2019-01-10 13:52:35 -08:00
Sean McArthur
b71787be86
refactor DNS resolver construction
...
- System Conf is read as `ClientBuilder::build()` time, providing the
error earlier.
- If there is an error reading the resolve system conf, a better error
is reported.
- Resolver only needs to lock a mutex once to spawn the background task,
instead of every single `resolve` call.
2019-01-10 12:47:29 -08:00
Shou Ya
b129ab0bb4
fix multipart with unicode filename ( #420 )
2019-01-08 21:01:52 -08:00
Martin Taibr
5578c77597
Fix typos ( #422 )
2019-01-08 12:12:50 -08:00
Sean McArthur
3112d99b7c
v0.9.6
2019-01-07 15:44:37 -08:00
Sean McArthur
fa8736f851
remove unneeded features from tokio dependency
2019-01-07 15:37:18 -08:00
Sean McArthur
691bcfe894
improve general documentation
2019-01-07 14:20:39 -08:00
Sean McArthur
56eff821fd
refactor multipart to reduce duplicate code between sync and async
2019-01-07 13:40:04 -08:00
Kevin Wilson
4c21127f15
add async multipart request handling
2019-01-07 10:57:51 -08:00
Sean McArthur
11d7812e88
rename Incompatile error kind to TlsIncompatible
2019-01-04 14:46:58 -08:00
Sean McArthur
ad854c3ee8
add Proxy::basic_auth support
...
Closes #322
2019-01-04 14:40:19 -08:00
Sean McArthur
b9f4661332
rename TLSBackend to TlsBackend
2019-01-03 12:43:22 -08:00
Sean McArthur
9c0c5ca42d
Fix RequestBuilder::headers to include multiple values
...
`RequestBuilder::headers` will always overwrite any existing header with
the same name, but will now correctly append extra values from the *new*
header map.
Closes #407
2019-01-03 12:28:03 -08:00
Sean McArthur
dd5b95fc06
document native-tls-vendored and rustls-tls features
2019-01-03 11:33:20 -08:00
Sean McArthur
9ddc45438c
remove no-longer-needed docs_rs_workaround
2019-01-03 11:29:46 -08:00
Sean McArthur
bc5b3dfa4a
rename native-tls-vendored to default-tls-vendored
2019-01-03 11:28:45 -08:00
Sean McArthur
0f4055f9ec
remove Error::is_runtime_startup accessor
2019-01-03 11:07:09 -08:00
Sean McArthur
59f57072ac
Remove timeout waiting for runtime thread to start
2019-01-03 09:36:54 -08:00
Sean McArthur
3877e8729c
add Error::is_runtime_startup() method
2019-01-02 11:12:25 -08:00
Sean McArthur
4df232efad
Return an Error instead of panic if sync Client cannot startup runtime.
...
The timeout is also increased to 10 seconds from 5.
Closes #392
2018-12-26 17:15:58 -08:00
Sean McArthur
c4985674aa
remove Inner noise from Error Debug format
2018-12-19 11:23:35 -08:00
Sean McArthur
66175bbd3e
increase minimum rust to 1.30
2018-12-18 12:54:22 -08:00
Sean McArthur
44837c1b69
Replace getaddrinfo resolver with trust-dns-resolver
2018-12-18 12:54:22 -08:00
Sean McArthur
b259d7c5f3
Stop Appveyor from building PRs twice
2018-12-18 12:36:38 -08:00
Sean McArthur
49d2905011
allow deprecated Error::cause in test
2018-12-17 13:28:57 -08:00
Sean McArthur
11962e36ab
allow deprecated on Error::cause
2018-12-17 12:23:30 -08:00
quininer
37039760f8
Add rustls support ( #390 )
2018-12-17 11:57:43 -08:00
polyfloyd
9cbd8c41ad
Add try_clone to Request and RequestBuilder ( #387 )
...
The need to clone a request or builder may arise when repeating a
request multiple times. This can be either because:
* The Request object is consumed by Client::execute
* The request might need to be retried later
* A complex request needs to be repeated with slightly different
parameters, such as in the Partial-Content scheme which allows seeking
through the content of large object over HTTP by performing multiple
HTTP GET requests.
To make this easier, it would be nice if Request and RequestBuilder
were to implement the Clone trait. However, this is not possible because
a body might be set that is a stream which can not be cloned. To get
around this, I added a try_clone function that fails if the body is not
clonable.
An alternative solution would be to add a type parameter to Request for
the body so a conditional implementation for Clone can be added.
2018-12-17 11:55:06 -08:00
Kornel
559f9634bc
Don't panic if the client builder fails ( #398 )
2018-12-13 13:44:47 -08:00
Bastien Orivel
a13f89c4e5
Update base64 to 0.10 ( #383 )
2018-11-28 14:53:01 -08:00
Daniel Wagner-Hall
8217c43db2
Allow native-tls to be vendored ( #391 )
2018-11-28 14:52:23 -08:00
Sean McArthur
e2fa5497ef
update deprecated Uri::port to port_part
2018-11-26 12:14:05 -08:00
Sean McArthur
459de48093
Bump minimum Rust version to 1.29.
...
Due to encoding_rs needing a newer compiler, we must update as well.
2018-11-21 12:27:35 -08:00
Danilo Bargen
4aa34bb591
Response.copy_to: Fix docs markup
2018-11-19 09:49:15 -08:00
Alex Gaynor
82bc1be89e
Bumped env_logger to 0.6
2018-11-15 09:42:04 -08:00
Sean McArthur
6555261064
v0.9.5
2018-11-13 12:53:12 -08:00
David Wilemski
6ef2060510
Added dns_threads setter to sync ClientBuilder ( #381 )
2018-11-05 11:27:32 -08:00
KNnut
527bcecce6
fix typo about x-form-urlencoded doc
2018-11-05 11:26:11 -08:00
Sean McArthur
97393143a5
put all TLS functionality behind a feature flag
...
The "Cargo feature" `default-tls`, which is enabled by default, is
added, with all TLS support relying on it. This allows using reqwest but
disabling the `native-tls` dependency, by disabling this feature.
Closes #225
2018-10-29 16:37:25 -07:00
Sean McArthur
478ef9bf15
add Response::remote_addr() method
...
The new `remote_addr` method returns an `Option<SocketAddr>`, which is
`Some` if the underlying transport uses socket addresses.
Closes #373
2018-10-26 14:23:33 -07:00
Sean McArthur
c91f37babf
v0.9.4
2018-10-26 14:07:17 -07:00
Sean McArthur
70b68c2b0a
add configuration to multipart::Form to choose percent-encoding format
...
Sets the default back to `path-segment`, since the "fix" breaks anyone
using reqwest from before.
Closes #363
2018-10-26 13:57:45 -07:00
Sean McArthur
e1a67f32aa
v0.9.3
2018-10-17 14:25:19 -07: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
a82232f0ee
always wait a max of 5 seconds for sync Client's background thread to start
2018-10-17 12:33:59 -07:00