Obsolete Members for QGrpcChannelOptions

The following members of class QGrpcChannelOptions are deprecated. They are provided to keep old source code working. We strongly advise against using them in new code.

Public Functions

(deprecated in 6.13) QHash<QByteArray, QByteArray> metadata() &&
(deprecated in 6.13) const QHash<QByteArray, QByteArray> &metadata() const &
(deprecated in 6.13) QGrpcChannelOptions &setMetadata(QHash<QByteArray, QByteArray> &&metadata)
(deprecated in 6.13) QGrpcChannelOptions &setMetadata(const QHash<QByteArray, QByteArray> &metadata)

Member Function Documentation

[deprecated in 6.13] QHash<QByteArray, QByteArray> QGrpcChannelOptions::metadata() &&

[noexcept, deprecated in 6.13] const QHash<QByteArray, QByteArray> &QGrpcChannelOptions::metadata() const &

These functions are deprecated since 6.13. We strongly advise against using them in new code.

Use metadata(QtGrpc::MultiValue) instead.

Returns the metadata. If this field is unset, returns empty metadata.

Note: Keys with the grpc- or qtgrpc- prefix are reserved by gRPC™ and QtGrpc. Provided entries using them are ignored when the request is built. Concrete channels may impose further restrictions; see QGrpcHttp2Channel#Reserved metadata keys.

See also metadata(QtGrpc::MultiValue_t) and setMetadata().

[deprecated in 6.13] QGrpcChannelOptions &QGrpcChannelOptions::setMetadata(QHash<QByteArray, QByteArray> &&metadata)

[deprecated in 6.13] QGrpcChannelOptions &QGrpcChannelOptions::setMetadata(const QHash<QByteArray, QByteArray> &metadata)

These functions are deprecated since 6.13. We strongly advise against using them in new code.

Use the QMultiHash overload instead.

Sets the metadata and returns a reference to the updated object.

Note: Keys with the grpc- or qtgrpc- prefix are reserved by gRPC and QtGrpc. Provided entries using them are ignored when the request is built. Concrete channels may impose further restrictions; see QGrpcHttp2Channel#Reserved metadata keys.

Note: This metadata is included in every RPC made through the channel. Channel metadata is merged with any call-specific metadata when the RPC starts — see QGrpcCallOptions::setMetadata(QMultiHash)

See also metadata().