1d4afb5ceSopenharmony_ciHTTP compression
2d4afb5ceSopenharmony_ci----------------
3d4afb5ceSopenharmony_ci
4d4afb5ceSopenharmony_ciThis directory contains generic compression transforms that can be applied to
5d4afb5ceSopenharmony_cispecifically HTTP content streams, after the header, be it h1 or h2.
6d4afb5ceSopenharmony_ci
7d4afb5ceSopenharmony_ciThe compression transforms expose an "ops" type struct and a compressor name
8d4afb5ceSopenharmony_cias used by `content-encoding`... the ops struct definition can be found in
9d4afb5ceSopenharmony_ci./private-lib-roles-http-compression.h.
10d4afb5ceSopenharmony_ci
11d4afb5ceSopenharmony_ciBecause the compression transform depends on being able to send on its output
12d4afb5ceSopenharmony_cibefore it can process new input, the transform adds a new kind of buflist
13d4afb5ceSopenharmony_ci`wsi->buflist_comp` that represents pre-compression transform data
14d4afb5ceSopenharmony_ci("input data" from the perspective of the compression transform) that was
15d4afb5ceSopenharmony_cidelivered to be processed but couldn't be accepted.
16d4afb5ceSopenharmony_ci
17d4afb5ceSopenharmony_ciCurrently, zlib 'deflate' and brotli 'br' are supported on the server side.
18