Commit Graph

166 Commits

Author SHA1 Message Date
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
messense
0203fad886 Detect encoding in Response::text() (#256)
* Detect encoding and decode text response

Fixes #246

* Try to get encoding from Content-Type header

* Remove uchardet encoding detection for now

* Add non utf-8 test case for Response::text()

* Reduce copies
2018-02-15 11:01:57 -08:00
Sean McArthur
c06d3d4028 Merge tag 'v0.8.4' 2018-01-22 09:44:23 -08:00
Sean McArthur
7412932e47 v0.8.4 2018-01-22 09:40:13 -08:00
Simon Bernier St-Pierre
8554a6335d add query string support to RequestBuilder 2018-01-22 09:38:18 -08:00
Sean McArthur
92a466126d v0.8.3 2018-01-19 17:55:15 -08:00
Sean McArthur
911ddd9f1e v0.8.3 2018-01-19 17:48:49 -08:00
Simon Bernier St-Pierre
f180a64551 add query string support to RequestBuilder 2018-01-09 18:48:49 -05:00
Sean McArthur
b09b8620a6 Merge pull request #232 from tafia/hyper-proxy
Remove proxy handling in favor of hyper-proxy crate
2018-01-02 10:12:44 -08:00
Sean McArthur
abfcd2796e v0.8.2 2017-12-19 13:30:06 -08:00
Johann Tuffe
8b1bb0b53e remove proxy handling in favor of hyper-proxy crate 2017-12-15 11:51:02 +08:00
Sean McArthur
9cc02ab007 update docs around ::get() and Response::text()
Closes #227
2017-12-13 17:16:22 -08:00
Sean McArthur
e87a3ec476 v0.8.1 2017-11-06 19:04:19 -08:00
Marcin Mielniczuk
3a501ff774 Document cookie status 2017-10-05 21:57:28 +02:00
Sean McArthur
6ab3923f1e v0.8.0 2017-10-02 12:27:41 -07:00
Hendrik Sollich
3289881691 fix doc link to RequestBuilder 2017-09-13 23:50:43 +02:00
Sean McArthur
390fc34148 wip 2017-09-04 13:11:20 -07:00
Sean McArthur
779f8080ef change Builders to only error at the end
Closes #189
2017-08-31 18:10:45 -07:00
Anthony Nowell
646c8b8efc Support PKCS12 identity on the ClientBuilder 2017-08-25 15:38:45 -07:00
e00E
93c8321305 Add multipart/form-data support 2017-08-21 10:58:59 -07: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
ee4db166ce v0.7.3 2017-08-19 16:07:24 -07:00
Ashley Mannix
2cb70c872a make body return borrowed decoder 2017-08-19 18:02:20 +10:00
Sean McArthur
a163e73b82 v0.7.2 2017-07-25 12:50:42 -07:00
Sean McArthur
dd147f1915 v0.7.1 2017-07-13 12:30:38 -07:00
Sean McArthur
d80ab1e104 add note that reqwest handles proxies 2017-07-13 12:30:02 -07:00
Sean McArthur
f5ce7d8127 v0.7.0 2017-07-11 12:41:29 -07:00
Sean McArthur
17c0739fcc connect TLS aftet tunneling to a proxy 2017-06-30 18:28:52 -07:00
Sean McArthur
6cdaff4b66 add a Proxy type
Proxies can currently be configured to intercept HTTP, HTTPS, and all
requests. HTTPS tunneling is supported.

Closes #30
2017-06-22 09:49:00 -07:00
Sean McArthur
665b4fe718 upgrade hyper to v0.11 2017-06-21 09:47:21 -07:00
James Kominick
98c5a02b02 remove network call from doc test 2017-06-09 16:32:12 -04:00
theduke
583fceb51f Move try_ macro to error.rs.
Fixes #109.
2017-06-07 18:07:22 -07:00
Sean McArthur
00382f8d06 use a stale check in the pool
Check that a socket is not EOF to reduce the likelihood of using
a bad pooled connection.
2017-06-06 13:31:28 -07:00
Sean McArthur
9c258cc7e9 Merge pull request #138 from budziq/error_docs_update
Error docs update
2017-06-03 23:21:59 -07:00
Michal Budzynski
026dca2512 Added missing "Errors" sections to client.rs and lib.rs 2017-06-04 04:48:13 +02:00
Michal Budzynski
40887488cf Exposed RedirectAction and RedirectAttempt
- also added minimal doc to RedirectAttempt to satisfy #![deny(missing_docs)]
- added links to `RedirectPolicy::Custom` docs
2017-06-04 03:21:50 +02:00
Alisha
31da9da392 ? instead of unwrap in example 2017-06-03 04:47:31 +10:00
Sean McArthur
7fc47fb908 remove all public mention of HttpVersion
Closes #123
2017-06-01 17:02:59 -07:00
Sean McArthur
e176dcebca convert RequestBuilder to a &mut Self builder
Closes #108
2017-06-01 16:23:16 -07:00
Michal Budzynski
0ffeb074b6 Point html_root_url to docs.rs 2017-06-01 09:50:19 +02:00
Corentin Henry
2f1b3b352b handle json serialization errors
fixes https://github.com/seanmonstar/reqwest/issues/112
2017-05-31 16:41:45 -07:00
Tom Prince
4c60e6d35f Really trivial rustfmt changes. 2017-05-31 14:50:32 -06:00
Corentin Henry
4b2eda7d29 add custom certificates & disabling hostname verif 2017-05-31 11:38:02 -07:00
James Kominick
812c220e61 update doc examples
- Make examples runnable for doc tests
- Add error handling using `?` instead of `unwrap`
2017-05-21 17:14:32 -04:00
Sean McArthur
57359a6e2f remove unintended export of private try_ macro 2017-05-18 09:22:00 -07:00
Sean McArthur
d514d4e6e8 redirect and error reform
- `Error` has been made an opaque struct.
- `RedirectPolicy` now makes use of `RedirectAttempt` and `RedirectAction`.
2017-05-08 11:38:48 -07:00
Sean McArthur
4d68979523 move Response pieces into its own response module 2017-04-05 16:48:32 -07:00
Sean McArthur
517e8f0aa5 implement Clone for Client 2017-04-05 11:22:19 -07:00
Jason Schein
ab5e477a12 Add (configurable) automatic gzip decompression. 2017-02-26 20:08:55 -08:00
Sean McArthur
69cdfcb763 Merge pull request #46 from sebasgarcep/master
Re-export Mime
2017-02-02 11:29:49 -08:00