abstract fun <Request, Response> GrpcClientCallScope<Request, Response>.intercept(request: Flow<Request>): Flow<Response>(source)
Intercept a client call.
You can:
Inspect GrpcClientCallScope.method and GrpcClientCallScope.callOptions.
Read or populate GrpcClientCallScope.requestHeaders.
Register GrpcClientCallScope.onHeaders and GrpcClientCallScope.onClose callbacks.
Transform the request flow or wrap the resulting response flow.
IMPORTANT: GrpcClientCallScope.proceed must eventually be called to actually execute the RPC and obtain the response Flow. If GrpcClientCallScope.proceed is omitted, the call will not reach the server.