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

Clarify availability of a Response Body in FeignException #1149

Merged

Conversation

kdavisk6
Copy link
Member

Fixes #920

FeignException may contain the data from the response if the response is available and contains data. However, the method content is ambiguous and does not reveal its intent. User's have expressed confusion as to if it is for the Request or the Response.

This change adds a new method responseBody to addresses this. Use of content is now @deprecated.

Fixes OpenFeign#920

FeignException may contain the data from the response if the response is available and contains data.  However, the method `content` is ambiguious and does not reveal it's intent.  User's have expressed confusion as to if it is for the Request or the Response.

This change adds a new method `responseBody` to addresse this.  Use of content is now `@deprecated`.
@kdavisk6 kdavisk6 merged commit 9584dfa into OpenFeign:master Dec 31, 2019
@kdavisk6 kdavisk6 deleted the gh-920-clarify-error-response-availability branch December 31, 2019 18:30
@kdavisk6 kdavisk6 added this to the 10.7.1 milestone Jan 12, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

FeignException contains request- or response-body
1 participant