because attohttpc doesn't distinguish between errors
when serializing or deserializing request/response
data, Error::RequestJson and Error::ResponseJson have
been merged into Error::Json. In practice this shouldn't
matter much because request data is (usually) well-formed.
attohttpc also doesn't return errors for HTTP responses
with statuses in the [400-599] range, so manual conversion
to an error is needed (this now happens in ResponseType::from_response).
This has some implications for
Error
:attohttpc
doesn't distinguish between errors when serializing or deserializing request/response data,Error::RequestJson
andError::ResponseJson
have been merged intoError::Json
. In practice this shouldn't matter much because request data is (usually) well-formed.attohttpc
also doesn't return errors for HTTP responses with statuses in the [400-599] range, so manual conversion to an error is needed (this now happens inResponseType::from_response
).Closes #3.