类 MultipartBody.Builder
java.lang.Object
com.lark.oapi.okhttp.MultipartBody.Builder
- 封闭类:
MultipartBody
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明addFormDataPart(String name, String value) Add a form data part to the body.addFormDataPart(String name, String filename, RequestBody body) Add a form data part to the body.addPart(Headers headers, RequestBody body) Add a part to the body.addPart(MultipartBody.Part part) Add a part to the body.addPart(RequestBody body) Add a part to the body.build()Assemble the specified parts into a request body.Set the MIME type.
-
构造器详细资料
-
Builder
public Builder() -
Builder
-
-
方法详细资料
-
setType
Set the MIME type. Expected values fortypeareMultipartBody.MIXED(the default),MultipartBody.ALTERNATIVE,MultipartBody.DIGEST,MultipartBody.PARALLELandMultipartBody.FORM. -
addPart
Add a part to the body. -
addPart
Add a part to the body. -
addFormDataPart
Add a form data part to the body. -
addFormDataPart
public MultipartBody.Builder addFormDataPart(String name, @Nullable String filename, RequestBody body) Add a form data part to the body. -
addPart
Add a part to the body. -
build
Assemble the specified parts into a request body.
-