Skip to content

Improve configuration of HttpMessageConverters in RestClient and RestTestClient #35578

@rstoyanchev

Description

@rstoyanchev

At the moment, the new Consumer<HttpMessageConverters.ClientBuilder> method creates a throwaway builder, and uses it to replace an internal list of converters.

We should change this to having HttpMessageConverters.ClientBuilder instead of a list, and each call with aConsumer would operate on the same builder instance.

The existing Iterable<HttpMessageConverter<?>> can turn off default registrations, and insert provided ones, which would be documented so it's clear how it works.

Metadata

Metadata

Assignees

Labels

in: webIssues in web modules (web, webmvc, webflux, websocket)type: enhancementA general enhancement

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions