如何使用 curl_easy 设置 --compressed curl 命令选项?

How to set the --compressed curl command option using curl_easy?

当我 运行 curl --help 时,我看到以下选项可用:

--compressed Request compressed response (using deflate or gzip)

但是,当我在 curl_easy 的 setopt 命令上访问 documentation 时,我没有看到传递此压缩标志的选项。

请问如何使用curl_easy_setopt设置--compressed

--compressed 等同于 CURLOPT_ACCEPT_ENCODING