![]() |
Qt 6.x
The Qt SDK
|
Classes | |
struct | Frame |
class | FrameReader |
class | FrameWriter |
struct | PushPromise |
struct | Stream |
Functions | |
Frame | configurationToSettingsFrame (const QHttp2Configuration &config) |
QByteArray | settingsFrameToBase64 (const Frame &frame) |
void | appendProtocolUpgradeHeaders (const QHttp2Configuration &config, QHttpNetworkRequest *request) |
void | qt_error (quint32 errorCode, QNetworkReply::NetworkError &error, QString &errorMessage) |
QString | qt_error_string (quint32 errorCode) |
QNetworkReply::NetworkError | qt_error (quint32 errorCode) |
bool | is_protocol_upgraded (const QHttpNetworkReply &reply) |
const quint32 | lastValidStreamID ((quint32(1)<< 31) - 1) |
const qint32 | maxSessionReceiveWindowSize ((quint32(1)<< 31) - 1) |
Variables | |
const char | Http2clientPreface [clientPrefaceLength] |
const qint32 | qtDefaultStreamReceiveWindowSize = maxSessionReceiveWindowSize / 10 |
|
strong |
Enumerator | |
---|---|
EMPTY | |
ACK | |
END_STREAM | |
END_HEADERS | |
PADDED | |
PRIORITY |
Definition at line 66 of file http2protocol_p.h.
|
strong |
Enumerator | |
---|---|
protocolError | |
sizeError | |
incompleteFrame | |
goodFrame |
Definition at line 124 of file http2protocol_p.h.
|
strong |
Enumerator | |
---|---|
DATA | |
HEADERS | |
PRIORITY | |
RST_STREAM | |
SETTINGS | |
PUSH_PROMISE | |
PING | |
GOAWAY | |
WINDOW_UPDATE | |
CONTINUATION | |
LAST_FRAME_TYPE |
Definition at line 47 of file http2protocol_p.h.
enum Http2::Http2Error |
Definition at line 132 of file http2protocol_p.h.
Enumerator | |
---|---|
clientPrefaceLength | |
connectionStreamID | |
frameHeaderSize | |
minPayloadLimit | |
maxPayloadSize | |
defaultSessionWindowSize | |
maxConcurrentStreams |
Definition at line 79 of file http2protocol_p.h.
|
strong |
Enumerator | |
---|---|
HEADER_TABLE_SIZE_ID | |
ENABLE_PUSH_ID | |
MAX_CONCURRENT_STREAMS_ID | |
INITIAL_WINDOW_SIZE_ID | |
MAX_FRAME_SIZE_ID | |
MAX_HEADER_LIST_SIZE_ID |
Definition at line 37 of file http2protocol_p.h.
void Http2::appendProtocolUpgradeHeaders | ( | const QHttp2Configuration & | config, |
QHttpNetworkRequest * | request | ||
) |
Definition at line 74 of file http2protocol.cpp.
References appendProtocolUpgradeHeaders(), configurationToSettingsFrame(), frame, Q_ASSERT, request, and settingsFrameToBase64().
Referenced by QHttpNetworkConnectionChannel::_q_connected(), and appendProtocolUpgradeHeaders().
struct Frame Http2::configurationToSettingsFrame | ( | const QHttp2Configuration & | config | ) |
Definition at line 35 of file http2protocol.cpp.
References Http2::FrameWriter::append(), configurationToSettingsFrame(), connectionStreamID, defaultSessionWindowSize, minPayloadLimit, and Http2::FrameWriter::outboundFrame().
Referenced by appendProtocolUpgradeHeaders(), and configurationToSettingsFrame().
bool Http2::is_protocol_upgraded | ( | const QHttpNetworkReply & | reply | ) |
Definition at line 187 of file http2protocol.cpp.
References Qt::CaseInsensitive, header(), QNetworkReply::header(), is_protocol_upgraded(), and reply.
Referenced by QHttpNetworkConnectionChannel::allDone(), and is_protocol_upgraded().
Referenced by QNetworkRequest::QNetworkRequest(), QHttp2Configuration::setSessionReceiveWindowSize(), and QHttp2Configuration::setStreamReceiveWindowSize().
QNetworkReply::NetworkError Http2::qt_error | ( | quint32 | errorCode | ) |
Definition at line 179 of file http2protocol.cpp.
References error, QNetworkReply::NoError, and qt_error().
void Http2::qt_error | ( | quint32 | errorCode, |
QNetworkReply::NetworkError & | error, | ||
QString & | errorMessage | ||
) |
Definition at line 94 of file http2protocol.cpp.
References QString::arg(), CANCEL, QString::clear(), COMPRESSION_ERROR, CONNECT_ERROR, QNetworkReply::ContentAccessDenied, ENHANCE_YOUR_CALM, error, errorMessage(), FLOW_CONTROL_ERROR, FRAME_SIZE_ERROR, HTTP2_NO_ERROR, HTTP_1_1_REQUIRED, INADEQUATE_SECURITY, INTERNAL_ERROR, QNetworkReply::InternalServerError, QNetworkReply::NoError, PROTOCOL_ERROR, QNetworkReply::ProtocolFailure, qt_error(), REFUSE_STREAM, SETTINGS_TIMEOUT, STREAM_CLOSED, QNetworkReply::TimeoutError, QNetworkReply::UnknownNetworkError, and QNetworkReply::UnknownServerError.
Referenced by qt_error(), qt_error(), and qt_error_string().
Definition at line 171 of file http2protocol.cpp.
References error, QNetworkReply::NoError, and qt_error().
QByteArray Http2::settingsFrameToBase64 | ( | const Frame & | frame | ) |
Definition at line 59 of file http2protocol.cpp.
References QByteArray::Base64UrlEncoding, frame, QByteArray::fromRawData(), QByteArray::OmitTrailingEquals, Q_ASSERT, settingsFrameToBase64(), and wrapper().
Referenced by appendProtocolUpgradeHeaders(), and settingsFrameToBase64().
const Q_AUTOTEST_EXPORT char Http2::Http2clientPreface |
Definition at line 29 of file http2protocol.cpp.
const qint32 Http2::qtDefaultStreamReceiveWindowSize = maxSessionReceiveWindowSize / 10 |
Definition at line 116 of file http2protocol_p.h.
Referenced by QNetworkRequest::QNetworkRequest().