toEntity

Extension for RestClient.ResponseSpec.toEntity providing a toEntity<Foo>() variant leveraging Kotlin reified type parameters. This extension is not subject to type erasure and retains actual generic type arguments.

It also provides a KType hint for org.springframework.http.converter.SmartHttpMessageConverters supporting them.

Author

Sebastien Deleuze

Since

6.1