]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MEDIUM: compression: Make it so we can compress requests as well.
authorOlivier Houchard <ohouchard@backtrace.io>
Wed, 5 Apr 2023 22:33:48 +0000 (00:33 +0200)
committerOlivier Houchard <cognet@ci0.org>
Thu, 6 Apr 2023 22:49:17 +0000 (00:49 +0200)
commitead43fe4f2a3c94302b042556a992be2af66194f
tree6ad2cddca56ddcb98ad588eb06a338704c7c5655
parentdea25f51b6ea39f66275d43098c7a34c3afcc69f
MEDIUM: compression: Make it so we can compress requests as well.

Add code so that compression can be used for requests as well.
New compression keywords are introduced :
"direction" that specifies what we want to compress. Valid values are
"request", "response", or "both".
"type-req" and "type-res" define content-type to be compressed for
requests and responses, respectively. "type" is kept as an alias for
"type-res" for backward compatibilty.
"algo-req" specifies the compression algorithm to be used for requests.
Only one algorithm can be provided.
"algo-res" provides the list of algorithm that can be used to compress
responses. "algo" is kept as an alias for "algo-res" for backward
compatibility.
doc/configuration.txt
include/haproxy/compression-t.h
src/flt_http_comp.c