KClientRequestBuilder

@ApiStatus.Experimental
class KClientRequestBuilder<SVC : Any>

Builder for creating type-safe requests.

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): KClientRequest<Any?, Res>

Create a request by invoking a method on the target.