requiredBody

Extension for RestClient.ResponseSpec.body providing a requiredBody<Foo>() variant with a non-nullable return value.

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

Since

6.2

Throws

NoSuchElementException

if there is no response body