brotli: add brotli support
Fixes: https://github.com/nodejs/node/issues/18964
Adds brotli support to core. The brotli module must be enabled with --expose-brotli
. The api, and most of the source code, is almost identical to the zlib module.
There are a few things that need polishing but I thought I would open this up for discussion.
/cc @MylesBorins
Checklist
-
make -j4 test
(UNIX), orvcbuild test
(Windows) passes -
tests and/or benchmarks are included -
documentation is changed or added -
commit message follows commit guidelines