Make QGrpcStartInterceptor use the context pipeline
Originally, QGrpcStartInterceptor did not receive a
QGrpcInterceptionContext. This was because the start hook is the only
interception point allowed to modify call options, while the context
already provides read-only access to the current call options, which
causes an overlap at this hook point (i.e., we are effectively
providing both non-const and const access at the same time).
However, this decision effectively separated the start hook from the
rest of the interceptor pipeline, which is much worse.
QGrpcInterceptionContext was deliberately designed to provide a shared,
per-call context across hook points and interceptors. This makes it
future-proof for possible extensions, in case we decide to add more
accessors between interceptors.
This change aligns QGrpcStartInterceptor with the rest of the
interception pipeline and makes the API more consistent and future-proof
for potential context-related extensions.
Pick-to: 6.11
Task-number: QTBUG-142670
Change-Id: Ia4d48597aeca7cf991c688905b64931abc7ff542
Reviewed-by: Ivan Solovev <ivan.solovev@qt.io>