Skip to content

Added application/x-www-form-urlencoded support to the Jakarta REST client backed by a collection of NameValuePair#844

Open
arturobernalg wants to merge 1 commit into
apache:masterfrom
arturobernalg:rest-form-urlencoded
Open

Added application/x-www-form-urlencoded support to the Jakarta REST client backed by a collection of NameValuePair#844
arturobernalg wants to merge 1 commit into
apache:masterfrom
arturobernalg:rest-form-urlencoded

Conversation

@arturobernalg

Copy link
Copy Markdown
Member

No description provided.

@arturobernalg arturobernalg requested a review from ok2c July 4, 2026 17:37
@ok2c

ok2c commented Jul 5, 2026

Copy link
Copy Markdown
Member

@arturobernalg Great! But we also need a content consumer, don't we?

@arturobernalg arturobernalg force-pushed the rest-form-urlencoded branch 3 times, most recently from 8edd9f6 to 9cc7a7e Compare July 5, 2026 11:53
final Future<?> future = dispatchAsync(rawType, requestProducer);
final Future<?> future = isNameValuePairCollection(rm.getMethod(), isAsync)
? dispatchFormResponse(requestProducer)
: dispatchAsync(rawType, requestProducer);

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@arturobernalg This looks ugly. Are you certain we need a separate method for form data and this logic cannot be added to dispatchAsync?

…) to the Jakarta REST client backed by a collection of NameValuePair

Corrects the @Consumes/@produces content-type mapping to JAX-RS semantics (@consumes = request body, @produces = Accept).
@arturobernalg arturobernalg force-pushed the rest-form-urlencoded branch from 9cc7a7e to b1be68b Compare July 5, 2026 12:10
@arturobernalg arturobernalg requested a review from ok2c July 5, 2026 16:44
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.

2 participants