Commit Graph

514 Commits

Author SHA1 Message Date
Sean McArthur
2698148743 fix improper handling of request body backpressure
Closes #348
2018-09-19 14:20:12 -07:00
Vlad Frolov
276c3d6594 Added JSON examples 2018-09-19 12:48:46 -07:00
Xeoeen
3a5af68b92 remove invalid headers after erasing body (#349) 2018-09-19 12:07:59 -07:00
Sean McArthur
76547fee91 v0.9.0 2018-09-18 14:36:18 -07:00
Sean McArthur
610cdd266c Fix panicking when passed a file:// URL
Closes #347
2018-09-18 12:43:54 -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
55fcedcf97 pub(crate)ify the async::client module 2018-09-11 14:37:50 -07:00
Sean McArthur
1ded95ce0e pub(crate)ify the async::request module 2018-09-11 14:33:38 -07:00
Sean McArthur
2f893718ba pub(crate)ify async::response module 2018-09-11 14:27:28 -07:00
Sean McArthur
b95de15587 change Response::version() to return Version by value 2018-09-11 14:22:21 -07:00
Sean McArthur
64569542d4 fix tests for Part::mime() 2018-09-11 14:12:16 -07:00
Sean McArthur
6dfb7a5a0e pub(crate)ify the error module 2018-09-11 13:52:04 -07:00
Sean McArthur
5abf064770 change multipart::Part::mime() to mime_str()
The mime crate is expecting a breaking change to 0.4, so to remove the
public dependency, this method is changed to `mime_str`, which will
parse a MIME string instead.
2018-09-11 13:39:14 -07:00
Lucas Kent
99b52f949b Update to uuid 0.7 (#340) 2018-09-11 13:31:52 -07:00
Sean McArthur
a205128f03 fix multipart test compilation 2018-09-04 13:10:07 -07:00
Sean McArthur
b4c37fdc37 fix multipart header test 2018-09-04 11:47:51 -07:00
Sean McArthur
427900ff0c switch multipart headers to use HeaderValue 2018-09-04 11:30:18 -07:00
jcaesar
ca42e77abe Add a way to add headers to parts of multipart form data (#331) 2018-09-04 09:51:00 -07:00
Sean McArthur
c32831511b minimum rust version to 1.26 due to dependencies 2018-08-29 18:23:35 -07:00
Sean McArthur
2143aad3cd pub(crate)ify the multipart facade 2018-08-29 18:22:55 -07:00
Andrey Kutejko
f26d94d4ac use capital B for "Basic" and "Bearer" authentication helpers (#332) 2018-08-28 18:08:59 -07:00
Sean McArthur
2ada485591 update minimum rust version to 1.25 2018-08-27 10:22:30 -07:00
Sean McArthur
13cfc4df85 refactor redirect facade to use pub(crate) 2018-08-23 10:04:25 -07:00
Sean McArthur
ef529df3f2 remove inline annotations on client builder methods 2018-08-23 10:04:25 -07:00
Sean McArthur
afbeb1a384 change ClientBuilders to by-value builders 2018-08-23 10:04:25 -07:00
Brendan Hansknecht
ef05bfbf97 Add bearer auth to RequestBuilder (#330) 2018-08-22 12:00:58 -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
73a15ba13b fix CI with minimum rust version 2018-08-15 16:23:50 -07:00
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