Commit Graph

549 Commits

Author SHA1 Message Date
Michael Habib
4dc679d535 Add ClientBuilder::local_address option to bind to a local IP address (#451)
Closes #414
2019-02-11 10:40:16 -08:00
Guus
8ed9e60351 Correcting 404 on example/simple.rs (#449) 2019-01-28 10:14:59 -08:00
Sean McArthur
d2eee8591a v0.9.9 2019-01-23 12:20:44 -08:00
Sean McArthur
a9b79a8e30 pick up hyper and http patches 2019-01-23 12:18:03 -08:00
Sean McArthur
cf33fc907c Document the multipart module
Closes #444
2019-01-23 12:16:12 -08:00
quininer
b37e67b865 update rustls (#447) 2019-01-23 09:14:02 -08:00
Evan Schwartz
6e8e781f8f Add ClientBuilder::h2_prior_knowlege() (#443)
resolves https://github.com/seanmonstar/reqwest/issues/413
2019-01-18 14:15:57 -08:00
Sean McArthur
021851afd4 Enable h2 ALPN with rustls-tls backend 2019-01-18 11:53:56 -08:00
Sean McArthur
68e98d54ea Add Response::content_length() method 2019-01-18 11:42:27 -08:00
Sean McArthur
c7dc8851a3 remove duplicate keywords field from Cargo.toml 2019-01-17 16:35:40 -08:00
puffybsd
56c1c02b84 Fix bugs in README example (#441)
Fix missing > in method return signature, undeclared variable, and
adds return type to match method signature.
2019-01-15 21:23:41 -08:00
Sean McArthur
94535ece88 add readme and keywords to Cargo.toml 2019-01-15 17:50:48 -08:00
Sean McArthur
a9e135412d Add more details to README 2019-01-14 12:23:57 -08:00
Ben
68a4a3e63e Add json fetch example to readme (#438)
Closes #428
2019-01-14 12:07:04 -08:00
Sean McArthur
10c0e64711 v0.9.8 2019-01-11 17:33:29 -08:00
Sean McArthur
4d221533a2 Switch trust-dns to an off-by-default optional feature 2019-01-11 17:30:10 -08:00
Sean McArthur
81b4d26682 Try to detect Certificate and Identity errors earlier 2019-01-11 15:43:00 -08:00
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