intercept

Available in a dev version: 0․11․0-grpc-186

How to configure

fun intercept(vararg interceptors: GrpcClientInterceptor)(source)

Adds one or more client-side interceptors to the current gRPC client configuration. Interceptors enable extended customization of gRPC calls by observing or altering the behaviors of requests and responses.

The order of interceptors added via this method is significant. Interceptors are executed in the order they are added, while one interceptor has to invoke the next interceptor to proceed with the call.

Parameters

interceptors

Interceptors to be added to the current configuration. Each provided instance of GrpcClientInterceptor may perform operations such as modifying headers, observing call metadata, logging, or transforming data flows.

See also