Skip to content

Add BodyInserters.fromValue(T, ParameterizedTypeReference<T>) and related APIs #32713

@sdeleuze

Description

@sdeleuze

As initially raised in #32652, ServerResponse.BodyBuilder#bodyValue should allow to specify the generic type to use for serialization in Kotlin, but also in Java. So this issue is going to introduce:

  • BodyInserters.fromValue(T, ParameterizedTypeReference<T>)
  • Related Java APIs in WebClient.RequestBodySpec and ServerResponse.BodyBuilder
  • Related Kotlin extensions bodyValueWithType<T>(body) and bodyValueWithTypeAndAwait<T>(body)

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