Suppose I do a request, and use asObject(MyObject.class), and this fails. I can't do anything anymore with the response if parsing has failed which makes this method useless to me. I have to resort to parsing it myself using jackson or gson in order to avoid doing a second request just to reparse it.
It should somehow be possible to provide an alternative strategy to apply if the first one fails.
From #113
Suppose I do a request, and use asObject(MyObject.class), and this fails. I can't do anything anymore with the response if parsing has failed which makes this method useless to me. I have to resort to parsing it myself using jackson or gson in order to avoid doing a second request just to reparse it.
It should somehow be possible to provide an alternative strategy to apply if the first one fails.