| 程序包 | 说明 |
|---|---|
| net.dongliu.requests |
The request package
|
| net.dongliu.requests.body |
| 限定符和类型 | 方法和说明 |
|---|---|
RequestBuilder |
RequestBuilder.multiPartBody(Part<?>... parts)
Set multiPart body.
|
| 限定符和类型 | 方法和说明 |
|---|---|
RequestBuilder |
RequestBuilder.multiPartBody(Collection<Part<?>> parts)
Set multiPart body.
|
| 限定符和类型 | 方法和说明 |
|---|---|
Part<T> |
Part.charset(Charset charset)
The charset of this part's content.
|
Part<T> |
Part.contentType(String contentType)
Set content type for this part.
|
static Part<File> |
Part.file(String name,
File file)
Create a file multi-part field, from file.
|
static Part<byte[]> |
Part.file(String name,
String fileName,
byte[] bytes)
Create a file multi-part field, from byte array data.
|
static Part<File> |
Part.file(String name,
String fileName,
File file)
Create a file multi-part field, from file.
|
static Part<InputStream> |
Part.file(String name,
String fileName,
InputStream in)
已过时。
Http body may be send multi times(because of redirect or other reasons), use
file(String, String, InputStreamSupplier) instead. |
static Part<InputStreamSupplier> |
Part.file(String name,
String fileName,
InputStreamSupplier supplier)
Create a file multi-part field, from InputStream.
|
static Part<String> |
Part.param(String name,
String value)
已过时。
use
text(String, String) instead. |
static Part<String> |
Part.text(String name,
String value)
Create a text multi-part field.
|
| 限定符和类型 | 方法和说明 |
|---|---|
static RequestBody<Collection<? extends Part<?>>> |
RequestBody.multiPart(Collection<? extends Part<?>> parts)
Create multi-part post request body
|
| 限定符和类型 | 方法和说明 |
|---|---|
static RequestBody<Collection<? extends Part<?>>> |
RequestBody.multiPart(Collection<? extends Part<?>> parts)
Create multi-part post request body
|
Copyright © 2019. All rights reserved.