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
For Gerrit Dashboard: QTBUG-111037 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
476970,18 | Introduce QGrpcCallOptions and QGrpcChannelOptions | dev | qt/qtgrpc | Status: MERGED | +2 | 0 |
476971,18 | Remove QGrpcInsecureCredentials | dev | qt/qtgrpc | Status: MERGED | +2 | 0 |
477561,15 | Remove QGrpcSslCredentials | dev | qt/qtgrpc | Status: MERGED | +2 | 0 |
477582,18 | Remove QAbstractGrpcCredentials and QGrpcCredentials | dev | qt/qtgrpc | Status: MERGED | +2 | 0 |
477583,20 | Introduce QGrpcMetadata | dev | qt/qtgrpc | Status: MERGED | -1 | 0 |
477584,21 | Remove QGrpcUserPasswordCredentials | dev | qt/qtgrpc | Status: MERGED | +2 | 0 |
478894,14 | Update QtGRPC chat example to new options and QGrpcMetadata changes | dev | qt/qtgrpc | Status: MERGED | +2 | 0 |
479196,10 | Remove QGrpcChannelOptions::withCredentialsList() | dev | qt/qtgrpc | Status: MERGED | +2 | 0 |
495180,2 | Remove redundant includes | dev | qt/qtgrpc | Status: MERGED | +2 | 0 |
495266,2 | Remove redundant includes | 6.6 | qt/qtgrpc | Status: MERGED | +2 | 0 |