tapir icon indicating copy to clipboard operation
tapir copied to clipboard

(Client) Access to original body when decoding failed

Open jatcwang opened this issue 6 years ago • 0 comments

When a request failed (e.g. Server broke backwards compatibility), it'll be nice to be able to access the original body so we can log the error message from the server.

Not sure what to do with stream bodies, as once consumed the stream is exhausted. But this will be helpful for bodies which are fully in memory.

More context: https://gitter.im/softwaremill/tapir?at=5e2205a83ea53f0f663f0aec

jatcwang avatar Jan 22 '20 13:01 jatcwang