16 std::unique_ptr<folly::IOBuf>
22 for (
const auto& header : headers) {
53 VLOG(10) <<
"encoding name index=" <<
nameIndex;
64 VLOG(10) <<
"encoding index=" << index;
void encodeAsIndex(uint32_t index)
bool encodeAsLiteral(const HPACKHeader &header, bool indexing)
uint32_t encodeLiteral(folly::StringPiece literal)
std::unique_ptr< folly::IOBuf > release()
const Instruction INDEX_REF
void encodeLiteral(const HPACKHeader &header, uint32_t nameIndex, const HPACK::Instruction &instruction)
uint32_t nameIndex(const HPACKHeaderName &headerName) const
HPACKEncodeBuffer streamBuffer_
void addHeadroom(uint32_t bytes)
void encodeHeader(const HPACKHeader &header)
const Instruction LITERAL_INC_INDEX
uint32_t getIndex(const HPACKHeader &header) const
void handlePendingContextUpdate(HPACKEncodeBuffer &buf, uint32_t tableCapacity)
uint32_t encodeInteger(uint64_t value, uint8_t instruction, uint8_t nbit)
std::unique_ptr< folly::IOBuf > encode(const std::vector< HPACKHeader > &headers, uint32_t headroom=0)
const HeaderIndexingStrategy * indexingStrat_
const Instruction LITERAL