-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
remove json and url encoded form support from -http #2148
Conversation
@@ -209,7 +209,8 @@ impl RequestSender { | |||
) -> SendClientRequest { | |||
let body = match serde_json::to_string(value) { | |||
Ok(body) => body, | |||
Err(e) => return Error::from(e).into(), | |||
// TODO: own error type | |||
Err(e) => return Error::from(io::Error::new(io::ErrorKind::Other, e)).into(), |
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.
Thoughts on what do do here @fakeshadow, maybe a wrapped error that can also hold serialization errors as well as client errors from -http. Might leave it for a separate PR if you want to handle it.
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.
In general LGTM.
Howdy! Bit of feedback on this, particularly the error changes, since it wasn't clear to me how to operate without those helpers. Up through beta.5, I was able to do things like |
PR Type
Dep Reduction
PR Checklist
Overview
Further reduce the number of dependencies on -http, making it simpler.
Removes some
Into<Error>
andResponseError
impls for each lib's error types. I think this makes sense anyway but need to look at the error system before v4 anyhow, it's possible the response error trait can be moved to -web, too, which would make it possible to re-impl for these types.