static <@Nullable T> Body<T> |
Bodies.json(@Nullable T value,
Charset charset,
JsonMarshaller jsonMarshaller) |
Create a json body
|
static <@Nullable T> Body<T> |
Bodies.json(@Nullable T value,
JsonMarshaller jsonMarshaller) |
Create a json body, with charset utf-8.
|
static Body<List<Part<?>>> |
Bodies.multiPart(List<? extends Part<?>> parts) |
Create multi-part encoded request body, from several Parts.
|
static Body<List<Part<?>>> |
Bodies.multiPart(Part<?>... parts) |
Create multi-part encoded request body, from several Parts.
|
static Body<byte[]> |
Bodies.octetStream(byte[] value) |
Create octet-stream request body.
|
static Body<Path> |
Bodies.octetStream(Path path) |
Create octet-stream request body.
|
static Body<InputSupplier> |
Bodies.octetStream(InputSupplier inputSupplier) |
Create octet-stream request body.
|
static Body<byte[]> |
Bodies.of(byte[] value,
MimeType mimeType) |
Create request body from byte array data
|
static Body<byte[]> |
Bodies.of(byte[] value,
MimeType mimeType,
Charset charset) |
Create request body from byte array data
|
static Body<String> |
Bodies.of(String value,
MimeType mimeType) |
Create request body send string data using UTF-8 charset.
|
static Body<String> |
Bodies.of(String value,
MimeType mimeType,
Charset charset) |
Create request body send string data
|
static Body<Path> |
Bodies.of(Path path,
MimeType mimeType) |
Create request body from file
|
static Body<Path> |
Bodies.of(Path path,
MimeType mimeType,
Charset charset) |
Create request body from file
|
static Body<InputSupplier> |
Bodies.of(InputSupplier supplier,
MimeType mimeType) |
Create request body from input stream.
|
static Body<InputSupplier> |
Bodies.of(InputSupplier supplier,
MimeType mimeType,
Charset charset) |
Create request body from input stream.
|
static Body<String> |
Bodies.plainText(String value) |
Create request body sending plain text, with UTF-8 charset.
|
static Body<String> |
Bodies.plainText(String value,
Charset charset) |
Create request body sending plain text.
|
static Body<List<Param>> |
Bodies.wwwForm(Collection<? extends Param> params) |
Create request body send x-www-form-encoded data, with UTF-8 charset.
|
static Body<List<Param>> |
Bodies.wwwForm(Collection<? extends Param> params,
Charset charset) |
Create request body send x-www-form-encoded data
|
static Body<List<Param>> |
Bodies.wwwForm(Map<String,String> params) |
Create request body send x-www-form-encoded data, with UTF-8 charset.
|
static Body<List<Param>> |
Bodies.wwwForm(Map<String,String> map,
Charset charset) |
Create request body send x-www-form-encoded data
|
static Body<List<Param>> |
Bodies.wwwForm(Param... params) |
Create request body send x-www-form-encoded data, with UTF-8 charset.
|