Sean McArthur
|
e291d4e3d0
|
Merge pull request #101 from little-dude/fix-nightly
Fix build for nightly-2017-05-22
|
2017-05-23 23:25:53 -05:00 |
|
Corentin Henry
|
6cde2e538e
|
Fix build for nightly-2017-05-22
Compilation fails with nightly-2017-05-22:
```
error: unused macro definition
--> src/error.rs:188:1
|
188 | / macro_rules! try_ {
189 | | ($e:expr) => (
190 | | match $e {
191 | | Ok(v) => v,
... |
204 | | )
205 | | }
| |_^
|
= note: #[deny(unused_macros)] implied by #[deny(warnings)]
note: lint level defined here
--> src/lib.rs:1:9
|
1 | #![deny(warnings)]
| ^^^^^^^^
```
Removing the duplicate (and unused) `try_!` macro in error.rs fixes the
warning.
|
2017-05-23 17:11:01 -07:00 |
|
theduke
|
60295dd0fc
|
Improve type signature of RequestBuilder::basic_auth().
Use Into<String> for both arguments to make the API more convenient.
|
2017-05-23 23:59:53 +02:00 |
|
James Kominick
|
812c220e61
|
update doc examples
- Make examples runnable for doc tests
- Add error handling using `?` instead of `unwrap`
|
2017-05-21 17:14:32 -04:00 |
|
James Kominick
|
e9d5774365
|
update example error handling
- Add error-chain dev dependency
- Add error handling using `?` instead of `unwrap`
|
2017-05-21 16:15:46 -04:00 |
|
Sean McArthur
|
241e5069b4
|
v0.6.2
|
2017-05-18 14:36:18 -07:00 |
|
Sean McArthur
|
32907dc100
|
touch up Client doc example
|
2017-05-18 14:35:22 -07:00 |
|
Sean McArthur
|
dfaf25d1cb
|
add defaults to docs about gzip and redirect
|
2017-05-18 11:29:32 -07:00 |
|
Sean McArthur
|
d8696045b4
|
referer updates
- Don't set Referer if going from https to http
- Explicitly remove username, password, and fragment from Referer
|
2017-05-18 11:26:28 -07:00 |
|
Sean McArthur
|
e00a64aa18
|
make sensitive header check include port
- adjusts to use &mut Headers
- add integration test
|
2017-05-18 10:58:41 -07:00 |
|
Steve Robinson
|
21a28dffd1
|
Filters sensitive headers when redirecting to a Location of different host than of the Referrer
Removes Cookie, Authorization and WWW-Authenticate cookies.
Resolves #10
|
2017-05-18 10:57:10 -07:00 |
|
Sean McArthur
|
5a078cd1be
|
remove unintended export of private try_ macro
|
2017-05-18 10:57:10 -07:00 |
|
Sean McArthur
|
bafcd7ae6f
|
add a referer() option to disable setting Referer header on redirects
|
2017-05-18 10:56:39 -07:00 |
|
Sean McArthur
|
57359a6e2f
|
remove unintended export of private try_ macro
|
2017-05-18 09:22:00 -07:00 |
|
Sean McArthur
|
eae8d32b7c
|
Merge pull request #95 from rap2hpoutre/patch-1
Add tiny example to Client
|
2017-05-16 11:43:26 -05:00 |
|
Raphaël Huchet
|
6a95a7e19e
|
Update client.rs
|
2017-05-15 23:37:31 +02:00 |
|
Raphaël Huchet
|
0b5ba9aaa7
|
Add tiny example to Client
|
2017-05-15 16:01:24 +02:00 |
|
Sean McArthur
|
cd640417db
|
v0.6.1
|
2017-05-12 22:07:41 -07:00 |
|
Sean McArthur
|
4bc2e61dc4
|
upgrade env_logger to 0.4
|
2017-05-12 22:07:21 -07:00 |
|
Sean McArthur
|
b1f40b776d
|
add Error::get_ref method with 'static bound
|
2017-05-12 22:03:24 -07:00 |
|
Sean McArthur
|
8463461654
|
Merge pull request #94 from frewsxcv/response-json-example
Add full example for `Response::json`.
|
2017-05-11 23:26:37 -07:00 |
|
Corey Farwell
|
c367a7034f
|
Add full example for Response::json.
|
2017-05-12 00:04:17 -04:00 |
|
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 |
|