-
-
Notifications
You must be signed in to change notification settings - Fork 162
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Inconsistencies between ureq and reqwest http clients #163
Comments
nice catch! I think we should try to make the |
I wonder if we should also keep a static |
I'd prefer not to add any implicit global state, but it should be possible for clients to pass in a closure that references an existing HTTP client without creating a new one on each request. To make this easier, this crate could offer an interface like the following without introducing any breaking changes: let http_client = oauth2::ureq::new_http_client();
...
client.exchange_code(...).request(http_client.callback()) i.e., |
I'm working on some breaking changes for 5.0 (see #253), which will accept |
This is now released in 5.0.0-alpha.1. If you can, please try it out and let me know if you find any issues that should be fixed before stabilizing the 5.0 API. There's an Upgrade Guide to help. |
I was reading through the code and I think there are some small differences in behaviour between
ureq::http_client
andreqwest::http_client
:oauth2-rs/src/reqwest.rs
Line 57 in 30c934a
The text was updated successfully, but these errors were encountered: