![]() |
Qt 6.x
The Qt SDK
|
#include <http2frames_p.h>
Public Member Functions | |
Frame () | |
FrameType | type () const |
quint32 | streamID () const |
FrameFlags | flags () const |
quint32 | payloadSize () const |
uchar | padding () const |
bool | priority (quint32 *streamID=nullptr, uchar *weight=nullptr) const |
FrameStatus | validateHeader () const |
FrameStatus | validatePayload () const |
quint32 | dataSize () const |
quint32 | hpackBlockSize () const |
const uchar * | dataBegin () const |
const uchar * | hpackBlockBegin () const |
Public Attributes | |
std::vector< uchar > | buffer |
Definition at line 35 of file http2frames_p.h.
Http2::Frame::Frame | ( | ) |
Definition at line 18 of file http2frames.cpp.
const uchar * Http2::Frame::dataBegin | ( | ) | const |
Definition at line 230 of file http2frames.cpp.
References flags(), Http2::frameHeaderSize, Http2::goodFrame, Http2::PADDED, priority(), Q_ASSERT, testFlag(), and validatePayload().
Referenced by hpackBlockBegin().
quint32 Http2::Frame::dataSize | ( | ) | const |
Definition at line 195 of file http2frames.cpp.
References flags(), Http2::goodFrame, Http2::PADDED, padding(), payloadSize(), priority(), Q_ASSERT, testFlag(), and validatePayload().
Referenced by hpackBlockSize().
FrameFlags Http2::Frame::flags | ( | ) | const |
Definition at line 39 of file http2frames.cpp.
References Http2::frameHeaderSize, and Q_ASSERT.
Referenced by Http2::FrameWriter::addFlag(), dataBegin(), dataSize(), padding(), priority(), validateHeader(), validatePayload(), and Http2::FrameWriter::writeHEADERS().
const uchar * Http2::Frame::hpackBlockBegin | ( | ) | const |
Definition at line 246 of file http2frames.cpp.
References begin(), Http2::CONTINUATION, dataBegin(), Http2::goodFrame, Http2::HEADERS, Http2::PUSH_PROMISE, Q_ASSERT, type(), and validatePayload().
quint32 Http2::Frame::hpackBlockSize | ( | ) | const |
Definition at line 212 of file http2frames.cpp.
References Http2::CONTINUATION, dataSize(), Http2::goodFrame, Http2::HEADERS, Http2::PUSH_PROMISE, Q_ASSERT, type(), and validatePayload().
uchar Http2::Frame::padding | ( | ) | const |
Definition at line 51 of file http2frames.cpp.
References Http2::DATA, flags(), Http2::frameHeaderSize, Http2::goodFrame, Http2::HEADERS, Http2::PADDED, Http2::PUSH_PROMISE, Q_ASSERT, testFlag(), type(), and validateHeader().
Referenced by dataSize().
quint32 Http2::Frame::payloadSize | ( | ) | const |
Definition at line 45 of file http2frames.cpp.
References Http2::frameHeaderSize, and Q_ASSERT.
Referenced by dataSize(), Http2::FrameReader::read(), validateHeader(), and validatePayload().
Definition at line 69 of file http2frames.cpp.
References flags(), Http2::frameHeaderSize, Http2::goodFrame, Http2::HEADERS, Http2::PADDED, Http2::PRIORITY, Q_ASSERT, streamID(), testFlag(), type(), and validatePayload().
Referenced by dataBegin(), and dataSize().
quint32 Http2::Frame::streamID | ( | ) | const |
Definition at line 33 of file http2frames.cpp.
References Http2::frameHeaderSize, and Q_ASSERT.
Referenced by priority(), and Http2::FrameWriter::writeHEADERS().
FrameType Http2::Frame::type | ( | ) | const |
Definition at line 23 of file http2frames.cpp.
References Http2::frameHeaderSize, Http2::LAST_FRAME_TYPE, and Q_ASSERT.
Referenced by QHttp2ProtocolHandler::_q_receiveReply(), hpackBlockBegin(), hpackBlockSize(), padding(), priority(), validateHeader(), validatePayload(), and Http2::FrameWriter::write().
FrameStatus Http2::Frame::validateHeader | ( | ) | const |
Definition at line 92 of file http2frames.cpp.
References Http2::ACK, flags(), Http2::frameHeaderSize, Http2::GOAWAY, Http2::goodFrame, Http2::maxPayloadSize, payloadSize(), Http2::PING, Http2::PRIORITY, Http2::PUSH_PROMISE, Q_ASSERT, Http2::RST_STREAM, Http2::SETTINGS, Http2::sizeError, testFlag(), type(), and Http2::WINDOW_UPDATE.
Referenced by padding(), Http2::FrameReader::read(), validatePayload(), and Http2::FrameWriter::write().
FrameStatus Http2::Frame::validatePayload | ( | ) | const |
Definition at line 148 of file http2frames.cpp.
References Http2::DATA, flags(), Http2::frameHeaderSize, Http2::goodFrame, Http2::HEADERS, Http2::LAST_FRAME_TYPE, Http2::PADDED, payloadSize(), Http2::PRIORITY, Http2::PUSH_PROMISE, Q_ASSERT, Http2::sizeError, type(), and validateHeader().
Referenced by dataBegin(), dataSize(), hpackBlockBegin(), hpackBlockSize(), priority(), and Http2::FrameReader::read().
std::vector<uchar> Http2::Frame::buffer |
Definition at line 62 of file http2frames_p.h.
Referenced by Http2::FrameWriter::append(), Http2::FrameReader::read(), Http2::FrameWriter::setFlags(), Http2::FrameWriter::setPayloadSize(), Http2::FrameWriter::setType(), Http2::FrameWriter::start(), Http2::FrameWriter::write(), and Http2::FrameWriter::writeHEADERS().