类 Header
java.lang.Object
com.alibaba.nacos.common.http.param.Header
Http header.
- 作者:
- liaochuntao
-
字段概要
字段 -
方法概要
修饰符和类型方法说明Add all KV list to header.voidAdd all parameters to header.voidaddOriginalResponseHeader(String key, List<String> values)set original format response header.Add the key and value to the header.build()voidclear()get original format response header.iterator()static HeadersetContentType(String contentType)toList()Transfer to KV part list.toString()
-
字段详细资料
-
EMPTY
-
-
方法详细资料
-
newInstance
-
addParam
Add the key and value to the header.- 参数:
key- the keyvalue- the value- 返回:
- header
-
setContentType
-
build
-
getValue
-
getHeader
-
iterator
-
toList
Transfer to KV part list. The odd index is key and the even index is value.- 返回:
- KV string list
-
addAll
Add all KV list to header. The odd index is key and the even index is value.- 参数:
list- KV list- 返回:
- header
-
addAll
Add all parameters to header.- 参数:
params- parameters
-
addOriginalResponseHeader
set original format response header.Currently only corresponds to the response header of JDK.
- 参数:
key- original response header keyvalues- original response header values
-
getOriginalResponseHeader
get original format response header.Currently only corresponds to the response header of JDK.
- 返回:
- Map original response header
-
getCharset
-
clear
public void clear() -
toString
-