Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
Loading...
Searching...
No Matches
Http2::Frame Struct Reference

#include <http2frames_p.h>

+ Collaboration diagram for Http2::Frame:

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 uchardataBegin () const
 
const ucharhpackBlockBegin () const
 

Public Attributes

std::vector< ucharbuffer
 

Detailed Description

Definition at line 35 of file http2frames_p.h.

Constructor & Destructor Documentation

◆ Frame()

Http2::Frame::Frame ( )

Definition at line 18 of file http2frames.cpp.

Member Function Documentation

◆ dataBegin()

const uchar * Http2::Frame::dataBegin ( ) const

Definition at line 231 of file http2frames.cpp.

References flags(), Http2::frameHeaderSize, Http2::goodFrame, Http2::PADDED, priority(), Q_ASSERT, testFlag(), and validatePayload().

Referenced by hpackBlockBegin().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ dataSize()

quint32 Http2::Frame::dataSize ( ) const

Definition at line 196 of file http2frames.cpp.

References flags(), Http2::goodFrame, Http2::PADDED, padding(), payloadSize(), priority(), Q_ASSERT, testFlag(), and validatePayload().

Referenced by hpackBlockSize().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ flags()

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().

+ Here is the caller graph for this function:

◆ hpackBlockBegin()

const uchar * Http2::Frame::hpackBlockBegin ( ) const

Definition at line 247 of file http2frames.cpp.

References begin(), Http2::CONTINUATION, dataBegin(), Http2::goodFrame, Http2::HEADERS, Http2::PUSH_PROMISE, Q_ASSERT, type(), and validatePayload().

+ Here is the call graph for this function:

◆ hpackBlockSize()

quint32 Http2::Frame::hpackBlockSize ( ) const

Definition at line 213 of file http2frames.cpp.

References Http2::CONTINUATION, dataSize(), Http2::goodFrame, Http2::HEADERS, Http2::PUSH_PROMISE, Q_ASSERT, type(), and validatePayload().

+ Here is the call graph for this function:

◆ padding()

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().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ payloadSize()

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().

+ Here is the caller graph for this function:

◆ priority()

bool Http2::Frame::priority ( quint32 * streamID = nullptr,
uchar * weight = nullptr ) const

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().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ streamID()

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().

+ Here is the caller graph for this function:

◆ type()

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(), QHttp2Connection::handleReadyRead(), hpackBlockBegin(), hpackBlockSize(), padding(), priority(), validateHeader(), validatePayload(), and Http2::FrameWriter::write().

+ Here is the caller graph for this function:

◆ validateHeader()

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().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ validatePayload()

FrameStatus Http2::Frame::validatePayload ( ) const

Definition at line 149 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().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

Member Data Documentation

◆ buffer


The documentation for this struct was generated from the following files: