Open
Description
Feature description
When consuming legacy, external ReST services that do not include Content-Type
headers with their responses, I would like to be able to advise the declarative, HTTP client to parse responses using the Consumes annotation.
For example, it would be nice if the following method would default to parsing the response body as JSON if the response doesn't contain the Content-Type
header because it's annotated to consume JSON.
@Post
@Consumes(MediaType.APPLICATION_JSON)
HttpResponse<TokenResponse> postToken(@NotNull @Body String token)