Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
sdeleuze opened this issue Apr 26, 2024 · 0 comments
Closed
Assignees
Labels
in: web Issues in web modules (web, webmvc, webflux, websocket) type: enhancement A general enhancement
Milestone

Comments

@sdeleuze
Copy link
Contributor

sdeleuze commented Apr 26, 2024

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)
@sdeleuze sdeleuze added in: web Issues in web modules (web, webmvc, webflux, websocket) type: enhancement A general enhancement labels Apr 26, 2024
@sdeleuze sdeleuze added this to the 6.2.0-M2 milestone Apr 26, 2024
@sdeleuze sdeleuze self-assigned this Apr 26, 2024
@sdeleuze sdeleuze changed the title Introduce ServerResponse.BodyBuilder#bodyValue with type reference parameter and related Kotlin extension Introduce ServerResponse.BodyBuilder#bodyValue with type reference parameter and related Kotlin extensions Apr 29, 2024
sdeleuze added a commit to sdeleuze/spring-framework that referenced this issue Apr 29, 2024
This commit introduces a ServerResponse.BodyBuilder#bodyValue variant
with a type reference parameter as well as related
WebClient.RequestBodySpec API, ServerResponse.BodyBuilder API and Kotlin
extensions.

Closes spring-projectsgh-32713
sdeleuze added a commit to sdeleuze/spring-framework that referenced this issue Apr 29, 2024
This commit introduces a
BodyInserters.fromValue(T, ParameterizedTypeReference<?>) variant with a
type reference parameter as well as related WebClient.RequestBodySpec
API, ServerResponse.BodyBuilder API and Kotlin extensions.

Closes spring-projectsgh-32713
@sdeleuze sdeleuze changed the title Introduce ServerResponse.BodyBuilder#bodyValue with type reference parameter and related Kotlin extensions Add BodyInserters.fromValue(T, ParameterizedTypeReference<?>) and related APIs Apr 29, 2024
sdeleuze added a commit to sdeleuze/spring-framework that referenced this issue Apr 29, 2024
This commit introduces a
BodyInserters.fromValue(T, ParameterizedTypeReference<?>) variant as
well as related WebClient.RequestBodySpec API,
ServerResponse.BodyBuilder API and Kotlin extensions.

Closes spring-projectsgh-32713
sdeleuze added a commit to sdeleuze/spring-framework that referenced this issue Apr 29, 2024
This commit introduces
BodyInserters.fromValue(T, ParameterizedTypeReference<?>) variant as
well as related WebClient.RequestBodySpec API,
ServerResponse.BodyBuilder API and Kotlin extensions.

Closes spring-projectsgh-32713
sdeleuze added a commit to sdeleuze/spring-framework that referenced this issue Apr 29, 2024
This commit introduces
BodyInserters.fromValue(T, ParameterizedTypeReference<?>) variant as
well as related WebClient.RequestBodySpec API,
ServerResponse.BodyBuilder API and Kotlin extensions.

Closes spring-projectsgh-32713
sdeleuze added a commit to sdeleuze/spring-framework that referenced this issue Apr 29, 2024
This commit introduces
BodyInserters.fromValue(T, ParameterizedTypeReference<?>) variant as
well as related WebClient.RequestBodySpec API,
ServerResponse.BodyBuilder API and Kotlin extensions.

Closes spring-projectsgh-32713
@sdeleuze sdeleuze changed the title Add BodyInserters.fromValue(T, ParameterizedTypeReference<?>) and related APIs Add BodyInserters.fromValue(T, ParameterizedTypeReference<T>) and related APIs Apr 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
in: web Issues in web modules (web, webmvc, webflux, websocket) type: enhancement A general enhancement
Projects
None yet
Development

No branches or pull requests

1 participant