Commit Graph

732 Commits

Author SHA1 Message Date
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
Sean McArthur
97d59f56a3 update hyper to 0.10 2017-01-11 12:00:50 -08:00
Sean McArthur
d71ded9dae fix unused mut warning in tests 2017-01-11 12:00:50 -08:00
Sean McArthur
fbea36160e Merge pull request #42 from sfackler/patch-1
Clarify OpenSSL requirement
2017-01-10 12:15:45 -08:00
Steven Fackler
e706dad222 Clarify OpenSSL requirement 2017-01-09 20:32:43 -08:00
Sean McArthur
4704c45693 Merge pull request #40 from saghm/hyper-error
export hyper::Error for use in custom types implementing Header
2017-01-02 18:40:09 -08:00
Saghm Rossi
b058a5d235 export hyper::Error for use in custom types implementing Header 2017-01-02 16:12:20 -05:00
Sean McArthur
17c577737c Merge pull request #38 from nelsonjchen/patch-1
s/lnstall/install/ in appveyor.yml
2017-01-01 18:31:07 -08:00
Nelson Chen
0bf39acfcb s/lnstall/install/ in appveyor.yml
el oh el

Fix for appveyor not starting to run at all.
2017-01-01 18:20:42 -08:00
Sean McArthur
677c1cca79 use rustup and stable rust in appveyor 2016-12-15 11:58:32 -08:00
Sean McArthur
e0065d69dc Merge pull request #35 from badboy/patch-1
Fix typo in documentation
2016-12-15 11:51:38 -08:00
Jan-Erik Rediger
8487bf3418 Fix typo in documentation 2016-12-15 09:52:33 +01:00
Sean McArthur
68aa3f7f62 v0.2.0 2016-12-14 10:09:02 -08:00
Sean McArthur
02d9651280 update license copyright year 2016-12-13 15:47:28 -08:00
Bryce Fisher-Fleig
add83c2324 Clarify Requirements for using this crate 2016-12-12 11:04:28 -08:00
Sean McArthur
2ff998cf16 add AppVeyor status badge to readme 2016-12-12 11:00:30 -08:00
Sean McArthur
7c2e163333 remove (todo redirect policy) from docs 2016-12-12 10:36:20 -08:00
Sean McArthur
4527a53181 remove Clone impl from Client 2016-12-12 10:31:20 -08:00
Sean McArthur
559ae8011a add header if no Accept is set 2016-12-12 10:29:14 -08:00
Sean McArthur
a317339deb Merge pull request #29 from seanmonstar/redirect-policy
add support for defining RedirectPolicy for a Client
2016-12-10 09:45:46 -10:00
Sean McArthur
e92b3e862a add support for defining RedirectPolicy for a Client 2016-12-10 11:36:22 -08:00
Sean McArthur
6ef73ae206 switch test server to 127.0.0.1 2016-12-10 11:20:01 -08:00
Sean McArthur
d18a53b3fc make Client: Send + Sync, RequestBuilder: Send, Response: Send 2016-12-02 15:36:33 -08:00
Sean McArthur
552f4712cd add osx test target, allow nightly to fail 2016-12-02 11:57:30 -08:00
Sean McArthur
ffaf6647de add appveyor ci 2016-12-02 11:52:24 -08:00
Sean McArthur
409edadff7 Merge pull request #21 from seanmonstar/aidanhs-aphs-307-308
Add handling of 307 and 308 redirects
2016-11-29 10:22:19 -08:00
Sean McArthur
dbfaf9c842 add a note to about redirects 2016-11-29 10:14:21 -08:00
Sean McArthur
3544e48e8e dont try to redirect if post body cannot be reset 2016-11-28 11:36:42 -08:00