public class ClientIpHeader extends AbstractModel
header, skipSign
Constructor and Description |
---|
ClientIpHeader() |
ClientIpHeader(ClientIpHeader 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 |
getHeaderName()
Get Name of the request header containing the client IP address for origin-pull.
|
String |
getSwitch()
Get Whether to enable the configuration.
|
void |
setHeaderName(String HeaderName)
Set Name of the request header containing the client IP address for origin-pull.
|
void |
setSwitch(String Switch)
Set Whether to enable the configuration.
|
void |
toMap(HashMap<String,String> map,
String prefix)
Internal implementation, normal users should not use it.
|
any, fromJsonString, getBinaryParams, GetHeader, getMultipartRequestParams, getSkipSign, set, SetHeader, setParamArrayObj, setParamArraySimple, setParamObj, setParamSimple, setSkipSign, toJsonString
public ClientIpHeader()
public ClientIpHeader(ClientIpHeader source)
public String getSwitch()
public void setSwitch(String Switch)
Switch
- Whether to enable the configuration. Values:
public String getHeaderName()
public void setHeaderName(String HeaderName)
HeaderName
- Name of the request header containing the client IP address for origin-pull. When Switch is on, this parameter is required. X-Forwarded-For is not allowed for this parameter.
Note: This field may return null, which indicates a failure to obtain a valid value.Copyright © 2024. All rights reserved.