abstract fun <Request, Response> GrpcServerCallScope<Request, Response>.intercept(request: Flow<Request>): Flow<Response>(source)
Intercept a server call.
You can:
Inspect GrpcServerCallScope.method.
Read GrpcServerCallScope.requestHeaders and populate GrpcServerCallScope.responseHeaders/GrpcServerCallScope.responseTrailers.
Register GrpcServerCallScope.onClose callbacks.
Transform the request flow or wrap the resulting response flow.
Append information to the GrpcServerCallScope.context.
IMPORTANT: You must eventually call GrpcServerCallScope.proceed to actually invoke the service logic and produce the response Flow. If GrpcServerCallScope.proceed is omitted, the call will never reach the service.