receive

suspend fun receive(info: TypeInfo): Any

Tries to receive the payload of the response as an specific expectedType. Returns response if expectedType is HttpResponse.

Exceptions

NoTransformationFoundException - If no transformation is found for the expectedType.

DoubleReceiveException - If already called receive.