909 Commits

Author SHA1 Message Date
Sean McArthur
6d87f2743e v0.6.0 2017-05-09 15:32:48 -07:00
Sean McArthur
e39cbc3671 update libflate version for bug fixes 2017-05-09 15:32:29 -07:00
Sean McArthur
f6109840f1 some info! logs for Request and Response 2017-05-09 15:30:29 -07:00
Sean McArthur
8771ff4194 update serde_urlencoded 2017-05-09 15:21:23 -07:00
Ted Driggs
5947578a28 Change trait to DeserializeOwned 2017-05-09 13:42:50 -07:00
Ted Driggs
14dbc79da3 Bump serde and serde_json to 1.0 2017-05-09 13:42:18 -07:00
Sean McArthur
be1b1f0ab8 Merge pull request #88 from seanmonstar/error-reform
redirect and error reform
2017-05-09 13:36:48 -07:00
Sean McArthur
b802723164 Merge pull request #92 from theduke/basic-auth-requestbuilder
Added basic_auth helper on RequestBuilder
2017-05-08 16:35:27 -07:00
theduke
ad31cbc76c Added basic_auth helper on RequestBuilder 2017-05-08 23:49:12 +02:00
Sean McArthur
d514d4e6e8 redirect and error reform
- `Error` has been made an opaque struct.
- `RedirectPolicy` now makes use of `RedirectAttempt` and `RedirectAction`.
2017-05-08 11:38:48 -07:00
Sean McArthur
b0ef498f77 v0.5.2 2017-05-05 14:26:18 -07:00
Sean McArthur
b5475f6903 tidy up some clippy warnings 2017-05-05 14:13:54 -07:00
Sean McArthur
7d457b4f5a Merge pull request #83 from seanmonstar/gzip-empty
fix panic from Gzip reading an empty stream
2017-05-05 12:51:23 -07:00
Sean McArthur
3cc4d654a3 fix panic from Gzip reading an empty stream
Closes #82
2017-05-05 11:50:07 -07:00
Sean McArthur
76921efbfb Merge pull request #80 from spk/add-response_json-example
Add response json example
2017-04-23 11:18:43 -07:00
Laurent Arnoud
cc850a65cb Add response json example
ref https://github.com/seanmonstar/reqwest/pull/19#issuecomment-261789621
2017-04-23 18:00:35 +02:00
Sean McArthur
af1f2f3a81 Merge pull request #75 from imp/response_url
Expose final response URL as it is reported by hyper
2017-04-08 15:21:04 -07:00
Cyril Plisko
3c933a2947 Add test for response' final URL 2017-04-07 17:41:01 +03:00
Cyril Plisko
44c7ccb46d Expose the final response URL 2017-04-07 17:40:55 +03:00
Sean McArthur
4d68979523 move Response pieces into its own response module 2017-04-05 16:48:32 -07:00
Sean McArthur
1ed028ccc3 v0.5.1 2017-04-05 11:24:06 -07:00
Sean McArthur
517e8f0aa5 implement Clone for Client 2017-04-05 11:22:19 -07:00
Sean McArthur
ca6c042b96 add changelog link to readme 2017-03-24 16:57:17 -07:00
Sean McArthur
a1f76bf4ea v0.5.0 2017-03-24 16:40:42 -07:00
Sean McArthur
d87e7ca4e9 Merge pull request #68 from rylio/master
Modify Content-Encoding, Content-Length, and Accept-Encoding for gzip
2017-03-14 14:50:48 -07:00
Garrett Squire
ec049fefba add a timeout option for read and write operations on a client 2017-03-13 22:07:55 -07:00
Ryan Coffman
1a01a1311d Added test to check the Accept-Encoding is not changed if already set 2017-03-13 16:39:11 -07:00
Ryan Coffman
e557fe155d Remove content-encoding and content-length headers from response, if we ungzip the response,
and add accept-encoding: gzip header to the reqeuest when ungzipping is enabled
2017-03-13 16:39:11 -07:00
Sean McArthur
c9291049ee Merge pull request #67 from little-dude/master
add method for PATCH requests
2017-03-13 10:08:16 -07:00
Corentin Henry
4d6582d22b add method for PATCH requests 2017-03-12 15:23:23 -07:00
Sean McArthur
45732d21b9 Merge pull request #66 from rylio/master
Check for gzip in transfer-encoding header also.
2017-03-12 11:45:38 -07:00
Ryan Coffman
559ecfab45 Check for gzip in transfer-encoding header also. 2017-03-12 00:40:56 -08:00
Sean McArthur
11b993bb2c Merge pull request #61 from echochamber/default-gzip-response
Automatic Gzip Decoding.
2017-02-27 10:38:14 -08:00
Jason Schein
ab5e477a12 Add (configurable) automatic gzip decompression. 2017-02-26 20:08:55 -08:00
Sean McArthur
1d3c1346af Merge pull request #60 from faradayio/sized_body
Implement `Body::sized`
2017-02-17 16:02:31 -08:00
Eric Kidd
82f1877d4b Implement Body::sized
This is necessary for APIs such as BigML's, where we may need to send
extremely large request bodies, but chunked transfer encoding is not
supported.

This is a partial fix for seanmonstar/reqwest#49.
2017-02-17 07:04:10 -05:00
Sean McArthur
1768981c25 Merge pull request #59 from Keruspe/master
client: add convenience method for DELETE
2017-02-08 17:32:00 -08:00
Marc-Antoine Perennou
a3983f3122 client: add convenience method for DELETE
Signed-off-by: Marc-Antoine Perennou <Marc-Antoine@Perennou.com>
2017-02-08 14:37:54 +01:00
Sean McArthur
cee8355a7e Merge pull request #57 from unaffiliated/master
basic PUT functionality
2017-02-06 10:32:08 -08:00
unaffiliated
c37b8aa033 added in PUT functionality 2017-02-04 00:57:45 -08:00
Sean McArthur
69cdfcb763 Merge pull request #46 from sebasgarcep/master
Re-export Mime
2017-02-02 11:29:49 -08:00
Brandon W Maister
c5e955b681 Add some examples of reading the content of a Response, and a paragraph about Read 2017-02-02 11:29:37 -08:00
Sean McArthur
74f535c83c v0.4.0 2017-01-31 14:47:42 -08:00
Sean McArthur
bf29250f4f add categories to Cargo.toml 2017-01-31 14:46:36 -08:00
Sean McArthur
16497997b4 Merge pull request #53 from quodlibetor/update-serde
Update serde to 0.9
2017-01-29 20:48:21 -08:00
Brandon W Maister
d08cae4e4c Update serde to 0.9
All the tests pass for me, this seems almost too easy.

Closes #52
2017-01-29 23:17:58 -05:00
Sean McArthur
0285033f60 Merge pull request #41 from sfackler/hyper-native-tls
Use external hyper-native-tls crate
2017-01-21 12:50:38 -08:00
Steven Fackler
fa4df2037a Use external hyper-native-tls crate 2017-01-21 12:50:54 +00:00
Sebastian Garrido
0615c6d65e Re-export Mime 2017-01-14 11:54:31 -05:00
Sean McArthur
68c57f62b6 v0.3.0 2017-01-11 12:00:50 -08:00