prepareRequest

Wrap a pre-built Request into an invocable KRequest.

This is the low-level, generic invocation entrypoint. For the common case, prefer the type-safe toService/toVirtualObject/toWorkflow (and service/virtualObject/workflow) builders.

prepareRequest(Request.of(target, Serde.RAW, Serde.RAW, payload).build())
.options { idempotencyKey = "my-key" }
.call()
.await()

Return

an invocable KRequest.

Parameters

request

the request describing the target, payload and response type.