responds

abstract infix fun responds(block: suspend R.() -> Unit)(source)


open infix fun responds(block: Consumer<R>)(source)

Defines the expected response from the system in response to a completions request.

This method allows specifying the response using a Consumer-like approach for Java interop.

Parameters

block

a Consumer that configures the resulting response by applying specifications to an instance of the response object.