| Modifier and Type | Method and Description |
|---|---|
MultipartBody |
MultipartBody.charset(Charset charset)
Set the encoding of the request body
|
MultipartBody |
MultipartBody.contentType(String mimeType)
Set the mime-type of the request body
|
MultipartBody |
MultipartBody.field(String name,
byte[] bytes,
org.apache.http.entity.ContentType contentType,
String fileName)
Deprecated.
org.apache.http.entity.ContentType will be replaced by a Unirest owned class that behaves similarly
|
MultipartBody |
MultipartBody.field(String name,
byte[] bytes,
String fileName)
add a simple field with a name and value
|
MultipartBody |
MultipartBody.field(String name,
Collection<?> values)
add a simple field with a name and value
|
MultipartBody |
HttpRequestWithBody.field(String name,
Collection<?> value) |
MultipartBody |
MultipartBody.field(String name,
File file)
add a simple field with a name and value
|
MultipartBody |
HttpRequestWithBody.field(String name,
File file) |
MultipartBody |
MultipartBody.field(String name,
File file,
String contentType)
add a simple field with a name and value
|
MultipartBody |
HttpRequestWithBody.field(String name,
File file,
String contentType) |
MultipartBody |
MultipartBody.field(String name,
InputStream value,
org.apache.http.entity.ContentType contentType)
Deprecated.
org.apache.http.entity.ContentType will be replaced by a Unirest owned class that behaves similarly
|
MultipartBody |
MultipartBody.field(String name,
InputStream stream,
org.apache.http.entity.ContentType contentType,
String fileName)
Deprecated.
org.apache.http.entity.ContentType will be replaced by a Unirest owned class that behaves similarly
|
MultipartBody |
HttpRequestWithBody.field(String name,
InputStream stream,
org.apache.http.entity.ContentType contentType,
String fileName) |
MultipartBody |
MultipartBody.field(String name,
InputStream stream,
String fileName)
add a simple field with a name and value
|
MultipartBody |
HttpRequestWithBody.field(String name,
InputStream stream,
String fileName) |
MultipartBody |
HttpRequestWithBody.field(String name,
Object value) |
MultipartBody |
HttpRequestWithBody.field(String name,
Object value,
String contentType) |
MultipartBody |
MultipartBody.field(String name,
String value)
add a simple field with a name and value
|
MultipartBody |
MultipartBody.field(String name,
String value,
String contentType)
add a simple field with a name and value
|
MultipartBody |
HttpRequestWithBody.fields(Map<String,Object> parameters) |
MultipartBody |
MultipartBody.mode(org.apache.http.entity.mime.HttpMultipartMode value)
Deprecated.
Apache will be made a module in the future.
|
MultipartBody |
MultipartBody.mode(String value)
Deprecated.
Apache will be made a module in the future.
|
Copyright © 2019. All rights reserved.