responds With
Associates the current request specification with a response definition. This method is part of a fluent API for defining mappings between requests and responses.
Parameters
P
The type of the request payload.
T
The type of the response body.
block
A lambda function applied to a me.kpavlov.mokksy.response.ResponseDefinitionBuilder, used to configure the response definition.
fun <T : Any> respondsWith(responseType: KClass<T>, block: ResponseDefinitionBuilder<P, T>.() -> Unit)