KRequestBuilder

@ApiStatus.Experimental
class KRequestBuilder<SVC : Any>

Builder for creating type-safe requests from within a handler.

This builder allows the response type to be inferred from the lambda passed to request.

Parameters

SVC

the service/virtual object/workflow class

Functions

Link copied to clipboard
suspend fun <Res> request(block: suspend SVC.() -> Res): KRequest<Any?, Res>

Create a request by invoking a method on the target.