QGrpcHttp2Channel Class

The QGrpcHttp2Channel class is an HTTP/2 implementation of QAbstractGrpcChannel interface. More...

Header: #include <QGrpcHttp2Channel>
CMake: find_package(Qt6 REQUIRED COMPONENTS Grpc)
target_link_libraries(mytarget PRIVATE Qt6::Grpc)
Since: Qt 6.5
Inherits: QAbstractGrpcChannel

Public Functions

QGrpcHttp2Channel(const QUrl &url, std::unique_ptr<QAbstractGrpcCredentials> credentials)

Detailed Description

QGrpcHttp2Channel utilizes channel and call credentials. Channel credential QGrpcHttp2Channel supports SslConfigCredential key. When HTTPS is used, this key has to be explicitly specified and provide QSslConfiguration and value. The QSslConfiguration provided will be used to establish HTTP/2 secured connection. All keys passed as QGrpcCallCredentials will be used as HTTP/2 headers with related values assigned.

Member Function Documentation

[explicit] QGrpcHttp2Channel::QGrpcHttp2Channel(const QUrl &url, std::unique_ptr<QAbstractGrpcCredentials> credentials)

QGrpcHttp2Channel constructs QGrpcHttp2Channel with url used to establish channel connections and credentials.