public class ResponseHeader extends AbstractModel
Constructor and Description |
---|
ResponseHeader() |
ResponseHeader(ResponseHeader 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 |
---|---|
HttpHeaderPathRule[] |
getHeaderRules()
Get 自定义响应头规则数组。
注意:此字段可能返回 null,表示取不到有效值。
|
String |
getSwitch()
Get 自定义响应头开关,on或off。
|
void |
setHeaderRules(HttpHeaderPathRule[] HeaderRules)
Set 自定义响应头规则数组。
注意:此字段可能返回 null,表示取不到有效值。
|
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, getMultipartRequestParams, set, setParamArrayObj, setParamArraySimple, setParamObj, setParamSimple, toJsonString
public ResponseHeader()
public ResponseHeader(ResponseHeader source)
public String getSwitch()
public void setSwitch(String Switch)
Switch
- 自定义响应头开关,on或off。public HttpHeaderPathRule[] getHeaderRules()
public void setHeaderRules(HttpHeaderPathRule[] HeaderRules)
HeaderRules
- 自定义响应头规则数组。
注意:此字段可能返回 null,表示取不到有效值。Copyright © 2022. All rights reserved.