Skip to content

Allow body access like RequestBodyAdvice/ResponseBodyAdvice in RestClient #34605

@kk-mats

Description

@kk-mats

** Enhancements requests **
In Spring mvc, RequestBodyAdvice and ResponseBodyAdvice are provided to access and manipulate java objects of message bodies before serialization of incoming requests/after deserialization of outgoing responses.

While they are useful for implementing common logic requiring body data such as logging or customization, RestClient does not have any equivalent feature to do so.

ClientHttpRequestInterceptor is a bit similar but it allows access to only byte array representation of body data.

Metadata

Metadata

Assignees

No one assigned

    Labels

    in: webIssues in web modules (web, webmvc, webflux, websocket)

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions