Sean McArthur
3fbda4fd49
remove unstable language and feature
2018-08-15 16:08:47 -07:00
Sean McArthur
d060891b62
fix async request builder tests
2018-08-15 15:36:05 -07:00
Sean McArthur
591b83a8b8
remove some unwraps
2018-08-15 15:22:28 -07:00
Konrad Borowski
279725ee5e
Change RequestBuilder methods to own a builder
...
This means that `build` cannot possibly panic anymore due to being
called multiple times. This is a breaking change as it breaks the
behaviour of builder methods called without assigning to a new variable
or chaining. It's rather easy to fix those usages, as they won't
compile anymore and can be fixed by assigning a result.
Additionally, this change reduces the size of `RequestBuilder`,
although this likely isn't all that meaningful, as usually there
is no reason to store builders in structures.
2018-08-15 12:56:28 -07:00
Scott Schroeder
d8e47babf6
change invalid cert api to match native-tls ( #327 )
2018-08-13 15:08:02 -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
Douman
a25f62f4cb
Use base64 to fully encode basic auth creds
...
Change basic_auth to use less allocations
2018-07-31 13:54:44 -07:00
Yash Srivastav
12cfbafc28
Add support for getting HTTP version of a response
2018-07-31 13:53:42 -07:00
kennytm
a52520941f
multipart: Force a CRLF at the end of request
2018-07-27 11:40:38 -07:00
Sean McArthur
c1c5f14b7c
fix unused result warning in async example
2018-07-05 15:06:09 -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
Ben Shaw
7bd3619ece
fix query doc typo ( #309 )
2018-06-26 18:40:28 -07:00
Sean McArthur
a4f5c2d3f0
v0.8.6
2018-05-31 12:08:07 -07:00
Sean McArthur
cf5deac02d
document that Response::text consumes the body
...
Closes #302
2018-05-31 12:02:06 -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
Mattias Päivärinta
bffebfc470
Bump dependency on native-tls ( #286 )
...
native_tls::Certificate::from_pem was introduced in 0.1.5
2018-04-15 15:19:55 -07:00
Mattias Päivärinta
31504388d7
Add status code accessor to RedirectAttempt ( #285 )
2018-04-15 15:11:50 -07:00
Mattias Päivärinta
c00950085c
Make RedirectPolicy::redirect() public ( #282 )
2018-04-04 19:07:13 -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
David Nies
cf949177de
Update hyper to 0.11.22
2018-03-13 15:31:35 -07:00
messense
a9ec2b8c30
Bump minimum rustc version to 1.21.0 ( #270 )
2018-03-12 14:06:54 -07:00
Dylan DPC
d142ff2df1
Update uuid to 0.6 ( #257 )
2018-02-17 10:44:58 -08: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
f241fce38d
Merge pull request #254 from csirkeee/master
...
Minor documentation fix
2018-02-06 12:24:33 -08:00
András Eisenberger
de402ceac6
Minor documentation fix
2018-02-06 20:55:08 +01:00
Sean McArthur
be482fa303
Merge pull request #251 from ispkg/cert_pem
...
read certificate from PEM string.
2018-02-01 19:02:20 -08:00
Yu Xin
c2d14e8360
Merge branch 'master' into cert_pem
2018-02-02 09:58:50 +08:00
Xin Yu
1b55d8b08a
read certificate from PEM buffer.
2018-02-02 09:55:40 +08:00
Sean McArthur
3ed2695b00
Merge pull request #250 from oli-obk/master
...
Allow unsized types in `query`, `form` and `json`
2018-02-01 10:22:03 -08:00
Oliver Schneider
f0b774960d
Allow unsized types in query, form and json
2018-02-01 14:44:39 +01:00
Sean McArthur
f71504c15d
Merge pull request #248 from sbstp/query-build-async
...
add query method to unstable api
2018-01-23 09:57:38 -08:00
Simon Bernier St-Pierre
5672791ad0
add query method to unstable api
2018-01-22 20:42:05 -05: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
af49be0ce6
update to log 0.4
2018-01-19 17:55:15 -08:00
Sean McArthur
911ddd9f1e
v0.8.3
2018-01-19 17:48:49 -08:00
Sean McArthur
d6762d4877
update to log 0.4
2018-01-19 17:46:55 -08:00
Sean McArthur
3128a370db
remove deprecated no_proto usage of hyper
2018-01-19 17:39:03 -08:00
Sean McArthur
f716b5b7d6
Merge pull request #242 from sbstp/query-builder
...
Add query string support to RequestBuilder
2018-01-09 17:37:17 -08:00
Simon Bernier St-Pierre
f180a64551
add query string support to RequestBuilder
2018-01-09 18:48:49 -05:00
Sean McArthur
723b3906f7
Merge pull request #240 from shepmaster/patch-1
...
Remove duplicate "advance"
2018-01-07 10:35:35 -08:00
Jake Goulding
88218f893e
Remove duplicate "advance"
...
Also removed some excessive commas
2018-01-07 12:36:22 -05:00
Sean McArthur
374ec44d34
remove deprecated no_proto usage of hyper
2018-01-05 15:20:40 -08: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