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"})
 }