Enno Boland
2414042269
replace match ... { } with matches! macro where possible ( #1208 )
2021-03-08 15:02:45 -08:00
CfirTsabari
a856638316
Check format to all rs files under src ( #1188 )
...
fixed-format of all missing files.
Fixes seanmonstar/reqwest#1186
2021-03-01 17:06:14 -08:00
Sean McArthur
ce43f80d8b
Refactor Redirect API ( #741 )
...
Changed the redirect types to be from the `redirect` module:
- `reqwest::RedirectPolicy` is now `reqwest::redirect::Policy`
- `reqwest::RedirectAttempt` is now `reqwest::redirect::Attempt`
- `reqwest::RedirectAction` is now `reqwest::redirect::Action`
Changed behavior of default policy to no longer check for redirect loops
(loops should still be caught eventually by the maximum limit).
Removed the `too_many_redirects` and `loop_detected` methods from
`Action`.
Added `error` to `Action` that can be passed any error type.
Closes #717
2019-12-16 15:57:09 -08:00
Sean McArthur
6b5726aaa8
Improve fmt::Debug of Client and ClientBuilder
2019-10-09 13:46:39 -07:00
danieleades
cf8944a0f0
cargo fmt ( #604 )
...
Run rustfmt and setup CI to check for it.
2019-08-29 09:52:39 -07:00
Daniel Eades
3ba4b6eadf
port all optional features to 2018-edition
2019-08-16 12:59:55 -07:00
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