proxygen
|
#include <HPACKEncoderBase.h>
Public Member Functions | |
HPACKEncoderBase (bool huffman) | |
void | setHeaderTableSize (HeaderTable &table, uint32_t size) |
void | setHeaderIndexingStrategy (const HeaderIndexingStrategy *indexingStrat) |
const HeaderIndexingStrategy * | getHeaderIndexingStrategy () const |
Static Public Attributes | |
static const uint32_t | kBufferGrowth = 4000 |
Protected Member Functions | |
void | handlePendingContextUpdate (HPACKEncodeBuffer &buf, uint32_t tableCapacity) |
Protected Attributes | |
const HeaderIndexingStrategy * | indexingStrat_ |
HPACKEncodeBuffer | streamBuffer_ |
bool | pendingContextUpdate_ {false} |
Common encoder functionality between HPACK and QPACK
Definition at line 21 of file HPACKEncoderBase.h.
|
inlineexplicit |
Definition at line 24 of file HPACKEncoderBase.h.
References proxygen::HeaderIndexingStrategy::getDefaultInstance(), and indexingStrat_.
|
inline |
Definition at line 46 of file HPACKEncoderBase.h.
References handlePendingContextUpdate(), indexingStrat_, and uint32_t.
|
protected |
Definition at line 14 of file HPACKEncoderBase.cpp.
References proxygen::HPACKEncodeBuffer::encodeInteger(), pendingContextUpdate_, proxygen::HPACK::Q_TABLE_SIZE_UPDATE, and proxygen::HPACK::TABLE_SIZE_UPDATE.
Referenced by proxygen::HPACKEncoder::encode(), proxygen::QPACKEncoder::encode(), and getHeaderIndexingStrategy().
|
inline |
Definition at line 43 of file HPACKEncoderBase.h.
References indexingStrat_.
Referenced by proxygen::QPACKEncoder::QPACKEncoder().
|
inline |
Definition at line 36 of file HPACKEncoderBase.h.
References proxygen::HeaderTable::capacity(), pendingContextUpdate_, and proxygen::HeaderTable::setCapacity().
Referenced by proxygen::HPACKEncoder::setHeaderTableSize(), and proxygen::QPACKEncoder::setHeaderTableSize().
|
protected |
Definition at line 55 of file HPACKEncoderBase.h.
Referenced by proxygen::HPACKEncoder::encodeHeader(), getHeaderIndexingStrategy(), HPACKEncoderBase(), setHeaderIndexingStrategy(), and proxygen::QPACKEncoder::shouldIndex().
|
static |
Size of a new IOBuf which is added to the chain
jemalloc will round up to 4k - overhead
Definition at line 34 of file HPACKEncoderBase.h.
|
protected |
Definition at line 57 of file HPACKEncoderBase.h.
Referenced by handlePendingContextUpdate(), and setHeaderTableSize().
|
protected |
Definition at line 56 of file HPACKEncoderBase.h.
Referenced by proxygen::HPACKEncoder::encode(), proxygen::QPACKEncoder::encode(), proxygen::HPACKEncoder::encodeAsIndex(), proxygen::QPACKEncoder::encodeHeaderQ(), proxygen::HPACKEncoder::encodeLiteral(), proxygen::QPACKEncoder::encodeLiteralQ(), and proxygen::QPACKEncoder::encodeQ().