Long Live QGrpcInterceptor!


This commit implements the new QtGrpc interception mechanism. It is
based on the idea of subclassing each provided
QGrpc<HookPoint>Interceptor interface that one is interested in and
attach those to the channel.

Internally, we cache each implemented interfaces and provide the
hook-point handlers to the library. Library code should always check for
usage before invoking the interceptor engine to follow the zero-overhead
principle.

In this mechanism, request messages are provided to interceptors as
QProtobufMessage objects (before serialization) and responses are
provided as QByteArray (before deserialization).

This patch provides the implementation and tests. Documentation will be
provided as follow-up.

Fixes: QTBUG-128338
Change-Id: I50a9bfa7f1c125819b8e7dfcf7132746dd8df18c
Reviewed-by: Alexey Edelev <semlanik@gmail.com>
commitc8abd905d379f5c1a537a8a46bd272425c1b0879
parent596cb96d1a34c950f342e59f8ff9b9f5e54f857f
authorDennis Oberst <dennis.oberst@qt.io>
committerDennis Oberst <dennis.oberst@qt.io>
commit timeSat, 6 Dec 2025 00:34:55 +0100