RequestCaptureProxy

class RequestCaptureProxy<SVC : Any>(clazz: Class<SVC>, key: String?)

Captures method invocations on a proxy to extract invocation information.

This class is used to intercept calls on service proxies and extract the method metadata and arguments without actually executing the method. The captured information can then be used to build requests for remote invocation.

Parameters

SVC

the service type

Constructors

Link copied to clipboard
constructor(clazz: Class<SVC>, key: String?)

Functions

Link copied to clipboard
suspend fun capture(block: suspend SVC.() -> Any?): CapturedInvocation

Capture a method invocation from the given block.