Skip to content
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

Expose HTTP response to end users #98

Open
Acconut opened this issue Oct 20, 2023 · 0 comments
Open

Expose HTTP response to end users #98

Acconut opened this issue Oct 20, 2023 · 0 comments

Comments

@Acconut
Copy link
Member

Acconut commented Oct 20, 2023

Is your feature request related to a problem? Please describe.

Users currently cannot retrieve the response body. This includes successful responses (e.g. after an upload is finished), but also error cases, where the error message only includes the status code. The response body is not included in the message, although it usually includes more details.

Describe the solution you'd like

  • Error messages from 4xx status codes should include the response body
  • TusClient should have a callback that can be override to handle the response object in a custom manner.

See #89, #59, #80, for example.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant