QGrpcHttp2Channel Class

The QGrpcHttp2Channel class is an HTTP/2-based of QAbstractGrpcChannel ,基于 Qt Network HTTP/2 implementation. 更多...

头: #include <QGrpcHttp2Channel>
CMake: find_package(Qt6 REQUIRED COMPONENTS Grpc)
target_link_libraries(mytarget PRIVATE Qt6::Grpc)
Since: Qt 6.5
实例化: QQmlGrpcHttp2Channel
继承: QAbstractGrpcChannel
状态: 技术预览

公共函数

QGrpcHttp2Channel (const QGrpcChannelOptions & options )
virtual ~QGrpcHttp2Channel () override

详细描述

Uses QGrpcChannelOptions and QGrpcCallOptions to control the HTTP/2 communication with the server.

使用 QGrpcChannelOptions to set the SSL configuration, application-specific HTTP/2 headers, and connection timeouts.

QGrpcCallOptions control channel parameters for the specific unary call or gRPC stream.

另请参阅 QGrpcChannelOptions , QGrpcCallOptions ,和 QSslConfiguration .

成员函数文档编制

[explicit] QGrpcHttp2Channel:: QGrpcHttp2Channel (const QGrpcChannelOptions & options )

Constructs QGrpcHttp2Channel with options .

[override virtual noexcept] QGrpcHttp2Channel:: ~QGrpcHttp2Channel ()

销毁 QGrpcHttp2Channel 对象。