| Package | Description |
|---|---|
| kong.unirest |
| 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,
ContentType contentType,
String fileName)
add a simple field with a name and value
|
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)
Sets multiple field params on the body each with the same name.
|
MultipartBody |
MultipartBody.field(String name,
File file)
add a simple field with a name and value
|
MultipartBody |
HttpRequestWithBody.field(String name,
File file)
Sets a File on the body.
|
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)
Sets a File on the body with a specified content-type.
|
MultipartBody |
MultipartBody.field(String name,
InputStream value,
ContentType contentType)
add a simple field with a name and value
|
MultipartBody |
MultipartBody.field(String name,
InputStream stream,
ContentType contentType,
String fileName)
add a simple field with a name and value
|
MultipartBody |
HttpRequestWithBody.field(String name,
InputStream stream,
ContentType contentType,
String fileName)
Sets a File on the body from a raw InputStream requires a specified content-type and file name.
|
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)
Sets a File on the body from a raw InputStream requires a file name.
|
MultipartBody |
HttpRequestWithBody.field(String name,
Object value)
Sets a field param on the body.
|
MultipartBody |
HttpRequestWithBody.field(String name,
Object value,
String contentType)
Sets a field param on the body with a specified content-type.
|
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)
Sets multiple field params on the body from a map of key/value pairs.
|
MultipartBody |
MultipartBody.mode(MultipartMode value)
Set the Apache Mode.
|
MultipartBody |
HttpRequestWithBody.multiPartContent()
Forces the request to send as multipart even if all params are simple
|
MultipartBody |
MultipartBody.uploadMonitor(ProgressMonitor monitor)
Set a file Progress upload monitor suitable for drawing progress bars and whatnot.
|
Copyright © 2020. All rights reserved.