spring-framework
5.3.39

# postForObject

inline fun <T> RestOperations.postForObject(url: String, request: Any? = null, vararg uriVariables: Any): T
Content copied to clipboard
inline fun <T> RestOperations.postForObject(url: String, request: Any? = null, uriVariables: Map<String, *>): T
Content copied to clipboard
inline fun <T> RestOperations.postForObject(url: URI, request: Any? = null): T
Content copied to clipboard

Extension for RestOperations.postForObject providing a `postForObject<Foo>(...)` variant leveraging Kotlin reified type parameters. Like the original Java method, this extension is subject to type erasure. Use exchange if you need to retain actual generic type arguments.

#### Author

Jon Schneider

Sebastien Deleuze

#### Since

5.0