| Package | Description |
|---|---|
| kong.unirest |
| Modifier and Type | Method and Description |
|---|---|
static ContentType |
ContentType.create(String mimeType) |
static ContentType |
ContentType.create(String mimeType,
Charset charset) |
ContentType |
ContentType.withCharset(Charset charset) |
| Modifier and Type | Method and Description |
|---|---|
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,
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.
|
Copyright © 2023. All rights reserved.