Qt GRPC Interceptors
For an introduction to the interception mechanism and how interceptor interfaces participate in the lifecycle of an RPC, see the Qt GRPC Interceptors Overview.
Qt GRPC provides the following interceptor interfaces as hook points in the RPC lifecycle:
| Interface | Hook Point | Direction | Can Modify |
|---|---|---|---|
| QGrpcStartInterceptor | Before the RPC is initiated | Outbound | Initial message object, call options |
| QGrpcWriteMessageInterceptor | Before an outgoing message is written | Outbound | Message object |
| QGrpcWritesDoneInterceptor | When the client indicates writes are done | Outbound | — |
| QGrpcCancelInterceptor | When the RPC is cancelled | Outbound | — |
| QGrpcInitialMetadataInterceptor | When initial metadata is received | Inbound | Metadata |
| QGrpcMessageReceivedInterceptor | When a message payload is received | Inbound | Serialized message data |
| QGrpcTrailingMetadataInterceptor | When trailing metadata is received | Inbound | Metadata |
| QGrpcFinishedInterceptor | When the RPC completes | Inbound | Final status |
The following classes and pages form the Qt GRPC interceptor mechanism:
Provides contextual information to interceptor callbacks | |
Stores and manages a sequence of interceptors | |
Provides an overview of the Qt GRPC interceptor mechanism. | |
Specifies interception hook points supported by an interceptor |