Commit Graph

165 Commits

Author SHA1 Message Date
Chen Rotem Levy
265065f20d Typo in rustdoc (#507)
s/certicates/certificates/
2019-04-24 10:29:23 -07:00
Sean McArthur
08054a3984 v0.9.15 2019-04-15 12:36:27 -07:00
Sean McArthur
9ddeb5ad22 v0.9.14 2019-04-09 13:13:53 -07:00
Sean McArthur
8ee46f89f8 update docs and readme about cookies and socks 2019-04-09 12:57: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
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
9e2b56ba56 Add connect_timeout to async and sync clients 2019-02-20 15:15:55 -08:00
Sean McArthur
66db8d6283 refactor connect_async module into connect module 2019-02-20 15:15:55 -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
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
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
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
691bcfe894 improve general documentation 2019-01-07 14:20:39 -08:00
Kevin Wilson
4c21127f15 add async multipart request handling 2019-01-07 10:57:51 -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
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
Kornel
559f9634bc Don't panic if the client builder fails (#398) 2018-12-13 13:44:47 -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
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
Paul Woolcock
4857a5917d From<http::Response> for Response (#360)
This adds an implementation to convert a `Response` type from the `http`
crate to the `async_impl::Response` type. This is the first step to
allow us to convert `http::Response` objects to `request::Response`
objects

This also adds an extension trait for the `http::response::Builder`
type. The `http::Response` object does not provide a way to access the
"final" url that the response is derived from, so we can't easily
provide that in the `From<http::Response>` implementation. For users who
are manually constructing `http::Response` objects for use in tests,
etc, they can import this extension trait, which adds a `.url()` builder
method that will allow them to pass a `Url`, which we then convert to
our newtype'd Url and add to the `http::Response`'s `extensions`. Then,
when converting from `http::Response` to `async_impl::Response` we can
pull that value out of the `extensions` and use it to construct the
`async_impl::Response`

Closes #333
2018-10-04 17:38:26 -07:00
Sean McArthur
6c8f08a761 v0.9.2 2018-09-25 11:53:59 -07:00
Sean McArthur
2db72d1593 v0.9.1 2018-09-20 14:15:20 -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
Sean McArthur
2143aad3cd pub(crate)ify the multipart facade 2018-08-29 18:22:55 -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
Yash Srivastav
12cfbafc28 Add support for getting HTTP version of a response 2018-07-31 13:53:42 -07:00
Yash Srivastav
c417d6dab8 Upgrade hyper to 0.12
Closes #304
2018-07-05 10:03:31 -07:00
Sean McArthur
a4f5c2d3f0 v0.8.6 2018-05-31 12:08:07 -07:00
Sean McArthur
c5e1e0eddd remove note about using ? since it can be used in main now 2018-05-31 11:57:42 -07:00
Selwyn
26e202a0de Add code example structure explanation (#280)
Clarify code example structure in combination with the `?` operator. Add
as separate section so it can be easily removed when `?` can be used
inside of `main`.

Closes #275
2018-04-03 11:31:15 -07:00
Konrad Borowski
e3f468b8a9 Disable Travis build cache (#259)
As Cargo doesn't remove old build artifacts, a build cache means a lot
of time is spent downloading constantly increasing in size build
artifacts, especially for nightly releases.
2018-02-17 09:23:56 -08:00
Sean McArthur
aed318cb75 v0.8.5 2018-02-15 12:20:49 -08: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