public class Compression extends AbstractModel
header, skipSign| Constructor and Description | 
|---|
| Compression() | 
| Compression(Compression source)NOTE: Any ambiguous key set via .set("AnyKey", "value") will be a shallow copy,
       and any explicit key, i.e Foo, set via .setFoo("value") will be a deep copy. | 
| Modifier and Type | Method and Description | 
|---|---|
| String[] | getAlgorithms()Get 支持的压缩算法列表,取值有:
brotli:brotli算法;
gzip:gzip算法。 | 
| String | getSwitch()Get 智能压缩配置开关,取值有:
on:开启;
off:关闭。 | 
| void | setAlgorithms(String[] Algorithms)Set 支持的压缩算法列表,取值有:
brotli:brotli算法;
gzip:gzip算法。 | 
| void | setSwitch(String Switch)Set 智能压缩配置开关,取值有:
on:开启;
off:关闭。 | 
| void | toMap(HashMap<String,String> map,
     String prefix)Internal implementation, normal users should not use it. | 
any, fromJsonString, getBinaryParams, GetHeader, getMultipartRequestParams, getSkipSign, isStream, set, SetHeader, setParamArrayObj, setParamArraySimple, setParamObj, setParamSimple, setSkipSign, toJsonStringpublic Compression()
public Compression(Compression source)
public String getSwitch()
public void setSwitch(String Switch)
Switch - 智能压缩配置开关,取值有:
public String[] getAlgorithms()
public void setAlgorithms(String[] Algorithms)
Algorithms - 支持的压缩算法列表,取值有:
Copyright © 2025. All rights reserved.