intercept

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

How to configure

fun intercept(vararg interceptors: GrpcServerInterceptor)(source)

Registers one or more server-side interceptors for the gRPC server.

Interceptors allow observing and modifying incoming gRPC calls before they reach the service implementation logic. They are commonly used to implement cross-cutting concerns like authentication, logging, metrics, or custom request/response transformations.

Parameters

interceptors

One or more instances of GrpcServerInterceptor to be applied to incoming calls.

See also