22 namespace folly {
namespace io {
32 std::vector<Header>& headers);
46 std::unique_ptr<folly::IOBuf>
encode(
47 std::vector<compress::Header>& headers)
noexcept;
55 encoder_.setHeaderTableSize(size);
59 decoder_.setHeaderTableMaxSize(size);
62 void describe(std::ostream& os)
const;
65 HeaderCodec::setMaxUncompressed(maxUncompressed);
66 decoder_.setMaxUncompressed(maxUncompressed);
71 encoder_.getBytesStored(),
72 encoder_.getHeadersStored(),
73 decoder_.getTableSize(),
74 decoder_.getBytesStored(),
75 decoder_.getHeadersStored());
79 encoder_.setHeaderIndexingStrategy(indexingStrat);
82 return encoder_.getHeaderIndexingStrategy();
void setDecoderHeaderTableMaxSize(uint32_t size)
unique_ptr< IOBuf > encode(vector< HPACKHeader > &headers, HPACKEncoder &encoder)
void setEncoderHeaderTableSize(uint32_t size)
—— Concurrent Priority Queue Implementation ——
std::vector< HPACKHeader > decodedHeaders_
const HeaderIndexingStrategy * getHeaderIndexingStrategy() const
requires E e noexcept(noexcept(s.error(std::move(e))))
constexpr auto size(C const &c) -> decltype(c.size())
std::pair< vector< HPACKHeader >, uint32_t > prepareHeaders(vector< Header > &headers)
void setHeaderIndexingStrategy(const HeaderIndexingStrategy *indexingStrat)
HPACKTableInfo getHPACKTableInfo() const
void setMaxUncompressed(uint64_t maxUncompressed) override
std::ostream & operator<<(std::ostream &out, dynamic const &d)