1
0
Fork 0
mirror of https://github.com/warmcat/libwebsockets.git synced 2025-03-16 00:00:07 +01:00
libwebsockets/lib/roles/http/compression
2018-11-23 08:47:56 +08:00
..
brotli clean: general whitespace cleanup 2018-11-23 08:47:56 +08:00
deflate clean: general whitespace cleanup 2018-11-23 08:47:56 +08:00
private.h clean: general whitespace cleanup 2018-11-23 08:47:56 +08:00
README.md http: compression methods 2018-09-02 14:43:05 +08:00
stream.c http: compression methods 2018-09-02 14:43:05 +08:00

HTTP compression

This directory contains generic compression transforms that can be applied to specifically HTTP content streams, after the header, be it h1 or h2.

The compression transforms expose an "ops" type struct and a compressor name as used by content-encoding... the ops struct definition can be found in ./private.h.

Because the compression transform depends on being able to send on its output before it can process new input, the transform adds a new kind of buflist wsi->buflist_comp that represents pre-compression transform data ("input data" from the perspective of the compression transform) that was delivered to be processed but couldn't be accepted.

Currently, zlib 'deflate' and brotli 'br' are supported on the server side.