GrpcServerInterceptor

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

How to configure

Server-side interceptor for gRPC calls.

Implementations can observe and modify server handling in a structured way. The entry point is the intercept extension function on GrpcServerCallScope, which receives the inbound request Flow and must call GrpcServerCallScope.proceed to forward the call to the next interceptor or the target service method.

Common use-cases include:

  • Authentication/authorization checks and context propagation.

  • Setting response headers and trailers.

  • Structured logging and metrics.

  • Transforming request/response flows (e.g., validation, mapping, throttling).

See ServerInterceptorTest for practical usage patterns.

Functions

Link copied to clipboard

Intercept a server call.