Details
-
Task
-
Resolution: Fixed
-
P2: Important
-
None
-
None
-
21
-
dab59839f (dev), 3b8b24c7e (dev), aed606e6c (dev), 423568428 (dev), 9592fb0ca (dev), d5803c091 (dev), 5b5b752cb (dev), f57775c83 (dev), 6891bca29 (dev), afda2fd49 (6.6)
-
Foundation Sprint 81, Foundation Sprint 82, Foundation Sprint 83
Description
gRPC calls should have an extra argument that specifies the "call" options. This will allow to use a specific credentials or add some extra channel parameters(like http2 headers) for the specific call/stream only. The argument should be uninitialized by default.
The signature of the corresponding QAbstractGrpcClient functions should be changed as following:
QGrpcStatus call(QLatin1StringView method, const QProtobufMessage &arg, ReturnType *ret, QGrpcOptions opt = {}) std::shared_ptr<QGrpcCallReply> call(QLatin1StringView method, const QProtobufMessage &arg, QGrpcOptions opt = {}) std::shared_ptr<QGrpcStream> stream(QLatin1StringView method, const QProtobufMessage &arg, QGrpcOptions opt = {}) std::shared_ptr<QGrpcStream> stream(QLatin1StringView method, const QProtobufMessage &arg, const QWeakPointer<ReturnType> ret, QGrpcOptions opt = {})
The QGrpcOptions should be variation of variant map or similar structure, so channels can extract the data that is relevant for them.
It should be possible to read the options back using classes derived from QGrpcOperation.
Attachments
Issue Links
- is required for
-
QTBUG-109596 Qt GRPC Technology Preview scope in Qt 6.6
- Closed
- split to
-
QTBUG-113550 Create QGrpcOptionsOrchestrator
- Closed
-
QTBUG-113571 QtGrpc: Implement deadline logic for channel and calls
- Closed