Commit Graph

24 Commits

Author SHA1 Message Date
Daniel Eades
5dc5162765 update and tidy code 2019-08-16 12:59:55 -07:00
Daniel Eades
86d9cbc66e cargo fix --edition 2019-08-16 12:59:55 -07:00
Sean McArthur
964d87ce57 Update trait object syntax to use 'dyn' 2019-06-03 13:15:09 -07:00
Sean McArthur
691bcfe894 improve general documentation 2019-01-07 14:20:39 -08:00
Sean McArthur
ad854c3ee8 add Proxy::basic_auth support
Closes #322
2019-01-04 14:40:19 -08:00
Sean McArthur
13cfc4df85 refactor redirect facade to use pub(crate) 2018-08-23 10:04:25 -07:00
Yash Srivastav
c417d6dab8 Upgrade hyper to 0.12
Closes #304
2018-07-05 10:03:31 -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
Sean McArthur
779f8080ef change Builders to only error at the end
Closes #189
2017-08-31 18:10:45 -07:00
Sean McArthur
cf246d072b fix panic in removing Authorization header during redirect
Closes #171
2017-07-24 18:16:44 -07:00
Sean McArthur
665b4fe718 upgrade hyper to v0.11 2017-06-21 09:47:21 -07:00
Michal Budzynski
40887488cf Exposed RedirectAction and RedirectAttempt
- also added minimal doc to RedirectAttempt to satisfy #![deny(missing_docs)]
- added links to `RedirectPolicy::Custom` docs
2017-06-04 03:21:50 +02:00
Sean McArthur
8d784faa98 move all configuration from Client to ClientBuilder 2017-05-31 18:14:47 -07:00
Tom Prince
a2c24a4009 Some slightly less trivial rustfmt changes. 2017-05-31 14:50:32 -06:00
Tom Prince
4c60e6d35f Really trivial rustfmt changes. 2017-05-31 14:50:32 -06: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
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
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
Jan-Erik Rediger
8487bf3418 Fix typo in documentation 2016-12-15 09:52:33 +01:00
Sean McArthur
e92b3e862a add support for defining RedirectPolicy for a Client 2016-12-10 11:36:22 -08:00
Sebastian Dröge
d624b0ef29 Implement std::fmt::Debug for all public types 2016-11-14 20:54:18 +02:00
Sean McArthur
1259128d92 add native-tls and serde json support 2016-10-22 21:48:29 -07:00