Skip to content

(Client) Access to original body when decoding failed #388

@jatcwang

Description

@jatcwang

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions