Package org.miaixz.bus.http.bodys
Class MultipartBody.Builder
java.lang.Object
org.miaixz.bus.http.bodys.MultipartBody.Builder
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddFormDataPart(String name, String value) 将表单数据部分添加到主体中addFormDataPart(String name, String filename, RequestBody body) 将表单数据部分添加到主体中addPart(MultipartBody.Part part) 增加part至请求体addPart(RequestBody body) 增加part至请求体addPart(Headers headers, RequestBody body) 增加part至请求体build()将指定的部分组装成请求体setType(org.miaixz.bus.core.lang.MediaType type) Set the MIME type.
-
Constructor Details
-
Builder
public Builder() -
Builder
-
-
Method Details
-
setType
Set the MIME type. Expected values fortypeareMediaType.MULTIPART_MIXED(the default),MediaType.MULTIPART_ALTERNATIVE,MediaType.MULTIPART_DIGEST,MediaType.MULTIPART_PARALLELandMediaType.APPLICATION_FORM_URLENCODED. -
addPart
增加part至请求体 -
addPart
增加part至请求体 -
addFormDataPart
将表单数据部分添加到主体中 -
addFormDataPart
将表单数据部分添加到主体中 -
addPart
增加part至请求体 -
build
将指定的部分组装成请求体
-