-
Notifications
You must be signed in to change notification settings - Fork 37
Update to ureq 3 #76
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
Update to ureq 3 #76
Conversation
|
You could also consider swapping the |
emilk
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looking good - thanks!
| break; | ||
| } | ||
| }, | ||
| ); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There is a lot of code in common here with ehttp/src/native.rs. Maybe the setup-code could be broken out into a helper function that is used by both places?
emilk
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
chore: clarify the reason for used of `unreachable!()` Co-authored-by: Emil Ernerfeldt <emil.ernerfeldt@gmail.com>
Co-authored-by: Emil Ernerfeldt <emil.ernerfeldt@gmail.com>
Rather than the simple `std::io::Error::UnexpectedEof`, ureq now uses `std::io::Error::Custom(ureq::Error::Decompress(&str, std::io::Error::UnexpectedEof))`
|
HEAD requests have been fixed. I'm quite surprised that a subtle change (see commit description) to how ureq gives errors wouldn't be listed in the migration guide. |
|
Thanks! |

Switch to using the ureq 3 API. The changes include: