workerd
workerd copied to clipboard
Implements buffering in HtmlRewriter.
Test plan and further details in internal PR number 4445.
CLA Assistant Lite bot All contributors have signed the CLA ✍️ ✅
I have read the CLA Document and I hereby sign the CLA
Regarding header organization, would a separate html-rewriter-impl.h that gets included by both html-rewriter.c++ and the test work? That would keep the current header focused on the JS API as much as possible.
Maybe @jasnell has an idea how hard converting HTMLRewriter to use the high-level Streams API might be?
Good question. Short answer is I don't know yet. Will have to tease that out a bit to get an idea.