mirror of
https://libwebsockets.org/repo/libwebsockets
synced 2024-11-24 09:46:44 +00:00
d7f0521aeb
Having unique private header names is a requirement of a particular platform build system it's desirable to work with
18 lines
798 B
Markdown
18 lines
798 B
Markdown
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-lib-roles-http-compression.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.
|