53 auto result = std::make_unique<std::vector<HPACKHeader>>();
54 for (
size_t i = 0;
i <
headers.size();
i += 2) {
65 char* res = CHECK_NOTNULL(
new char[str.
length() + 1]);
std::unique_ptr< std::vector< HPACKHeader > > hpackHeaders() const
void onHeadersComplete(HTTPHeaderSize) override
char * duplicate(const folly::fbstring &str)
void onHeader(const folly::fbstring &name, const folly::fbstring &value) override
void onDecodeError(HPACK::DecodeError decodeError) override
folly::Function< void()> headersCompleteCb
const value_type * data() const
std::deque< HeaderPiece > HeaderPieceList
constexpr Unexpected< typename std::decay< Error >::type > makeUnexpected(Error &&)
static const char *const value
compress::HeaderPieceList headers
folly::Expected< HeaderDecodeResult, HPACK::DecodeError > getResult()