GrpcMetadata QML Type
The GrpcMetadata is a class that stores metadata in unordered multimap container. More...
Import Statement: | import QtGrpc |
Since: | Qt 6.7 |
Properties
- data : QVariantMap
Detailed Description
Metadata is information about a particular gRPC call or channel (such as authentication details) in the form of a list of key-value pairs, where the keys are strings and the values are typically strings, but can be binary data. The class provides the possibility to store data in an unordered container. Also, it is possible to store several values by the same key.
Note: Use the comma symbol to set several values by the same key.
Property Documentation
data : QVariantMap |
Provides access to metadata container and sets it in QVariantMap format in QML.
Note: Data is REQUIRED
property. It must be set for object creation.
Note: Use the comma symbol to set several values by the same key. See example below:
GrpcMetadata { id: grpcData data: ({ "user-name": "localhost, remotehost", "user-password": "qwerty, 123456"}) }
© 2024 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.