Implement zstd decompression
Given the size of Redfish schemas these days, it would be nice to be
able to store them on disk in a zstd format. Unfortunately, not all
clients support zstd at this time.
This commit implements reading of zstd files from disk, as well as
decompressing zstd in the case where the client does not support zstd as
a return type.
Tested:
Implanted an artificial zstd file into the system, and observed correct
decompression both with an allow-encoding header of empty string and
zstd.
Change-Id: I8b631bb943de99002fdd6745340aec010ee591ff
Signed-off-by: Ed Tanous <etanous@nvidia.com>
diff --git a/meson.options b/meson.options
index 14cf611..86a3713 100644
--- a/meson.options
+++ b/meson.options
@@ -283,6 +283,14 @@
description: 'Specifies the http request body length limit',
)
+# BMCWEB_HTTP_ZSTD
+option(
+ 'http-zstd',
+ type: 'feature',
+ value: 'enabled',
+ description: 'Allows compression/decompression using zstd',
+)
+
# BMCWEB_REDFISH_NEW_POWERSUBSYSTEM_THERMALSUBSYSTEM
option(
'redfish-new-powersubsystem-thermalsubsystem',