Crow
Crow copied to clipboard
support websocket compression
This adds support for websocket compression via permessage-deflate extension. It's based on https://github.com/ipkn/crow/pull/329, with a few changes to better match current crow. It resolves https://github.com/CrowCpp/Crow/issues/92 I was not able to use the current implementation of zlib. This needs state, which the current implementation does not support. It's enabled whenever CROW_ENABLE_COMPRESSION is defined. I tested it with my very websocket heavy app on recent chrome and firefox and it works as expected. Please let me know, if there's anything I need to change.
May I ask you to provide unit tests?
I'll try to add some unit-tests for this. Thanks for the review.