]> git.ipfire.org Git - thirdparty/rspamd.git/commit
[Feature] rspamc: Add --msgpack flag for v3 protocol
authorVsevolod Stakhov <vsevolod@rspamd.com>
Sat, 7 Feb 2026 15:55:53 +0000 (15:55 +0000)
committerVsevolod Stakhov <vsevolod@rspamd.com>
Sat, 7 Feb 2026 15:55:53 +0000 (15:55 +0000)
commit5ee32775d4342c900fa31d8c594265a858dcaf0f
tree1f9574bca6530235293d04253f0eb354ee7cfa70
parent4006bcdb9d6c020057232e4a3e12ebfabf2b24f8
[Feature] rspamc: Add --msgpack flag for v3 protocol

Add --msgpack option to rspamc that sends metadata as msgpack instead
of JSON and requests msgpack responses when using --protocol-v3.

The client serializes metadata via UCL_EMIT_MSGPACK, sets the metadata
part Content-Type to application/msgpack, and sends Accept:
application/msgpack so the server returns results in msgpack format.

Add functional tests for rspamc v3 with zstd compression, httpcrypt
encryption, msgpack metadata, and encrypted+msgpack combinations.
src/client/rspamc.cxx
src/client/rspamdclient.c
src/client/rspamdclient.h
test/functional/cases/001_merged/430_checkv3.robot