spring-framework / org.springframework.web.servlet.function / bodyWithType

bodyWithType

fun <reified T : Any> BodyBuilder.bodyWithType(body: T): ServerResponse!

Extension for ServerResponse.BodyBuilder.body providing a variant leveraging Kotlin reified type parameters.

Author
Sebastien Deleuze

Since
5.2