Commit Graph

90 Commits

Author SHA1 Message Date
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
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