QQmlGrpcMetadata QML Type

The QQmlGrpcMetadata is a class that stores metadata in unordered multimap container. 更多...

import 语句: import QtGrpc
Since: Qt 6.7

特性

详细描述

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.

注意: Use the comma symbol to set several values by the same key.

另请参阅 QGrpcMetadata .

特性文档编制

data : QVariantMap

Provides access to metadata container and holds it in QVariantMap format in QML.

注意: 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"})
}