public class ClientIpHeader extends AbstractModel
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 that contains the client IP for origin-pull.
|
String |
getSwitch()
Get Whether to enable the configuration.
|
void |
setHeaderName(String HeaderName)
Set Name of the request header that contains the client IP 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, getMultipartRequestParams, getSkipSign, set, 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 that contains the client IP for origin-pull.
The default value `X-Forwarded-IP` is used when it is not specified.
Note: This field may return `null`, indicating that no valid values can be obtained.Copyright © 2023. All rights reserved.