expects

fun <T : RES> expects(responseClass: KClass<T>, block: ResponseReceiver<T>.() -> Unit)

Handles the response if it is of the given type.

Since

1.0.0

Parameters

responseClass

The type of response to handle.

block

A function to handle the response.


inline fun <T : RES> expects(noinline block: ResponseReceiver<T>.() -> Unit)

Handles the response if it is of the given type.

Since

1.0.0

Parameters

block

A function to handle the response.