sendPaginatedRequestAsyncHandlers

suspend fun <R : Requester, T> R.sendPaginatedRequestAsyncHandlers(    request: suspend R.() -> JsonObject,     serializer: KSerializer<T>,     onSuccess: suspend (PaginatedResponse<T>) -> Unit,     onFailure: suspend (JsonObject) -> Unit,     onConnectionError: suspend (JsonObject) -> Unit? = null)

Method used to execute and handle the paginated response of the request

Parameters

request

The request to execute

serializer

The serializer of the item in the page

onSuccess

The asynchronous callback to execute if the request has been successful

onFailure

The asynchronous callback to execute if the request has been failed

onConnectionError

The asynchronous callback to execute if the request has been failed for a connection error