类 Headers.Builder
java.lang.Object
com.lark.oapi.okhttp.Headers.Builder
- 封闭类:
Headers
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明Add an header line containing a field name, a literal colon, and a value.Add a header with the specified name and value.Add a header with the specified name and formatted instant.Add a header with the specified name and formatted date.Adds all headers from an existing collection.addUnsafeNonAscii(String name, String value) Add a header with the specified name and value.build()Equivalent tobuild().get(name), but potentially faster.Set a field with the specified value.Set a field with the specified instant.Set a field with the specified date.
-
构造器详细资料
-
Builder
public Builder()
-
-
方法详细资料
-
add
Add an header line containing a field name, a literal colon, and a value. -
add
Add a header with the specified name and value. Does validation of header names and values. -
addUnsafeNonAscii
Add a header with the specified name and value. Does validation of header names, allowing non-ASCII values. -
addAll
Adds all headers from an existing collection. -
add
Add a header with the specified name and formatted date. Does validation of header names and value. -
add
Add a header with the specified name and formatted instant. Does validation of header names and value. -
set
Set a field with the specified date. If the field is not found, it is added. If the field is found, the existing values are replaced. -
set
Set a field with the specified instant. If the field is not found, it is added. If the field is found, the existing values are replaced. -
removeAll
-
set
Set a field with the specified value. If the field is not found, it is added. If the field is found, the existing values are replaced. -
get
Equivalent tobuild().get(name), but potentially faster. -
build
-