22 namespace folly {
namespace io {
47 return decoder_.decodeEncoderStream(
std::move(buf));
54 std::unique_ptr<folly::IOBuf> block,
59 encoder_.setHeaderTableSize(size);
63 decoder_.setHeaderTableMaxSize(size);
68 std::unique_ptr<folly::IOBuf> buf) {
69 return encoder_.decodeDecoderStream(
std::move(buf));
75 encoder_.onHeaderAck(streamId,
true);
79 return decoder_.encodeTableStateSync();
83 return decoder_.encodeHeaderAck(streamId);
87 return decoder_.encodeCancelStream(streamId);
90 void describe(std::ostream& os)
const;
93 HeaderCodec::setMaxUncompressed(maxUncompressed);
94 decoder_.setMaxUncompressed(maxUncompressed);
99 encoder_.getBytesStored(),
100 encoder_.getHeadersStored(),
101 decoder_.getTableSize(),
102 decoder_.getBytesStored(),
103 decoder_.getHeadersStored());
107 encoder_.setHeaderIndexingStrategy(indexingStrat);
110 return encoder_.getHeaderIndexingStrategy();
114 return decoder_.getHolBlockCount();
118 return decoder_.getQueuedBytes();
122 encoder_.setMaxVulnerable(maxVulnerable);
126 decoder_.setMaxBlocking(maxBlocking);
std::unique_ptr< folly::IOBuf > encodeCancelStream(uint64_t streamId)
unique_ptr< IOBuf > encode(vector< HPACKHeader > &headers, HPACKEncoder &encoder)
std::vector< HPACKHeader > decodedHeaders_
constexpr detail::Map< Move > move
void setMaxVulnerable(uint32_t maxVulnerable)
—— Concurrent Priority Queue Implementation ——
requires E e noexcept(noexcept(s.error(std::move(e))))
void onStreamReset(uint64_t streamId)
constexpr auto size(C const &c) -> decltype(c.size())
HPACK::DecodeError decodeEncoderStream(std::unique_ptr< folly::IOBuf > buf)
void setDecoderHeaderTableMaxSize(uint32_t size)
std::unique_ptr< folly::IOBuf > encodeHeaderAck(uint64_t streamId)
HPACK::DecodeError decodeDecoderStream(std::unique_ptr< folly::IOBuf > buf)
void setMaxBlocking(uint32_t maxBlocking)
void setHeaderIndexingStrategy(const HeaderIndexingStrategy *indexingStrat)
HPACKTableInfo getHPACKTableInfo() const
uint64_t getQueuedBytes() const
std::unique_ptr< folly::IOBuf > encodeTableStateSync()
void setEncoderHeaderTableSize(uint32_t size)
const HeaderIndexingStrategy * getHeaderIndexingStrategy() const
void setMaxUncompressed(uint64_t maxUncompressed) override
uint64_t getHolBlockCount() const
std::ostream & operator<<(std::ostream &out, dynamic const &d)