Commit Graph

170 Commits

Author SHA1 Message Date
Sean McArthur
9ddeb5ad22 v0.9.14 2019-04-09 13:13:53 -07:00
Christoph Herzog
954fdfae30 Implement cookie store support
This commit introduces a cookie store / session support
for both the async and the sync client.

Functionality is based on the cookie crate,
which provides a HTTP cookie abstraction,
and the cookie_store crate which provides a
store that handles cookie storage and url/expiration
based cookie resolution for requests.

Changes:
* adds new private dependencies: time, cookie, cookie_store
* a new cookie module which provides wrapper types around
    the dependency crates
* a Response::cookies() accessor for iterating over response cookies
* a ClientBuilder::cookie_store() method that enables session functionality
* addition of a cookie_store member to the async client
* injecting request cookies and persisting response cookies
* cookie tests

NOTE: this commit DOES NOT expose the CookieStore itself,
limiting available functionality.

This is desirable, but omitted for now due to API considerations that should be fleshed out in the future.
This means users do not have direct access to the cookie session for now.
2019-04-09 12:54:10 -07:00
Diggory Blake
c45ff29bfb Add support for SOCKS5 proxies, and parsing proxy authorizations from URLs 2019-04-08 11:42:18 -07:00
Sean McArthur
871ec6f989 v0.9.13 2019-04-01 18:45:16 -07:00
Sean McArthur
f77ec53e59 v0.9.12 2019-03-20 14:18:39 -07:00
quininer
f02ca0ded0 disable Nagle's for default-tls handshake 2019-03-20 14:09:31 -07:00
quininer
3554b0ad26 replace libflate with flate2 (#476) 2019-03-19 13:21:43 -07:00
Sean McArthur
d7475d61f2 v0.9.11 2019-03-04 11:41:54 -08:00
Sean McArthur
5deb5705f5 v0.9.10 2019-02-18 11:54:14 -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
quininer
b37e67b865 update rustls (#447) 2019-01-23 09:14:02 -08:00
Sean McArthur
021851afd4 Enable h2 ALPN with rustls-tls backend 2019-01-18 11:53:56 -08:00
Sean McArthur
c7dc8851a3 remove duplicate keywords field from Cargo.toml 2019-01-17 16:35:40 -08:00
Sean McArthur
94535ece88 add readme and keywords to Cargo.toml 2019-01-15 17:50:48 -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
23e13304ef Disable trust-dns on Windows
Closes #431
2019-01-11 12:34:03 -08:00
Sean McArthur
a8174feca4 v0.9.7 2019-01-10 13:58:23 -08:00
Sean McArthur
2649f9ab56 Remove trust-dns when target_os is Android 2019-01-10 13:52:35 -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
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
44837c1b69 Replace getaddrinfo resolver with trust-dns-resolver 2018-12-18 12:54:22 -08:00
quininer
37039760f8 Add rustls support (#390) 2018-12-17 11:57:43 -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
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
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
e1a67f32aa v0.9.3 2018-10-17 14:25:19 -07:00
Sean McArthur
6c8f08a761 v0.9.2 2018-09-25 11:53:59 -07:00
Sean McArthur
423559625d bump libflate dependency to 0.1.18 2018-09-25 11:48:56 -07:00
Sean McArthur
2db72d1593 v0.9.1 2018-09-20 14:15:20 -07:00
Sean McArthur
2698148743 fix improper handling of request body backpressure
Closes #348
2018-09-19 14:20:12 -07:00
Sean McArthur
76547fee91 v0.9.0 2018-09-18 14:36:18 -07:00
Laurent Arnoud
68d012e954 Try to fix docs.rs generation (#343)
https://github.com/seanmonstar/reqwest/issues/329
https://github.com/onur/docs.rs/issues/23#issuecomment-419623139
2018-09-12 15:59:56 -07:00
Lucas Kent
99b52f949b Update to uuid 0.7 (#340) 2018-09-11 13:31:52 -07:00
Sean McArthur
993658c2b6 remove error-chain from dev-dependencies 2018-08-17 10:42:55 -07:00
Sean McArthur
3424e91746 update and remove unnecessary dependencies 2018-08-15 16:54:41 -07:00
Sean McArthur
e182c416c9 add hyper-011 cargo feature to ease migration 2018-08-15 16:47:02 -07:00
Sean McArthur
3fbda4fd49 remove unstable language and feature 2018-08-15 16:08:47 -07:00
Yannick Heinrich
11f8588989 upgrade to native-tls 0.2 + invalid certs (#325)
- Bumps `native-tls` dependency to 0.2 and adapt code accordingly
- Import code used from `tokio-tls` into `connect_async` and adapt dependencies accordinlgy
- Add an option for using `danger_accept_invalid_certs` inside the `Config` struct
2018-08-08 13:14:36 -07:00
Sean McArthur
6c78e363e0 remote tokio-core dependency 2018-07-05 14:06:01 -07:00
Yash Srivastav
c417d6dab8 Upgrade hyper to 0.12
Closes #304
2018-07-05 10:03:31 -07:00