SuspendResponseConverter

interface SuspendResponseConverter : CoreResponseConverter

Implement this to support wrapping for custom types in suspend functions e.g. suspend fun test() : MyCustomType

Functions

supportedType
Link copied to clipboard
abstract fun supportedType(returnTypeName: String): Boolean

Check if this converter supports the return type

wrapResponse
Link copied to clipboard
abstract suspend fun <PRequest : Any> wrapResponse(returnTypeName: String, requestFunction: suspend () -> <ERROR CLASS><<ERROR CLASS>, <ERROR CLASS>>): Any

Inheritors

KtorfitSuspendCallResponseConverter
Link copied to clipboard