Obsolete Members for QGrpcCallOptions
The following members of class QGrpcCallOptions 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) QGrpcCallOptions & | setMetadata(QHash<QByteArray, QByteArray> &&metadata) |
(deprecated in 6.13) QGrpcCallOptions & | setMetadata(const QHash<QByteArray, QByteArray> &metadata) |
Member Function Documentation
[deprecated in 6.13] QHash<QByteArray, QByteArray> QGrpcCallOptions::metadata() &&
[noexcept, deprecated in 6.13] const QHash<QByteArray, QByteArray> &QGrpcCallOptions::metadata() const &
This function is deprecated since 6.13. We strongly advise against using it in new code.
Use the QMultiHash overload 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 setMetadata().
[deprecated in 6.13] QGrpcCallOptions &QGrpcCallOptions::setMetadata(QHash<QByteArray, QByteArray> &&metadata)
[deprecated in 6.13] QGrpcCallOptions &QGrpcCallOptions::setMetadata(const QHash<QByteArray, QByteArray> &metadata)
This function is deprecated since 6.13. We strongly advise against using it 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: Call metadata is merged with any channel-level metadata when the RPC starts — see QGrpcChannelOptions::setMetadata(QMultiHash).
See also metadata().
© 2026 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.