| Package | Description |
|---|---|
| org.aoju.bus.core.consts | |
| org.aoju.bus.http | |
| org.aoju.bus.http.internal.http |
| Modifier and Type | Method and Description |
|---|---|
static MediaType |
MediaType.get(String text)
Returns a media type for
string. |
| Modifier and Type | Method and Description |
|---|---|
MediaType |
MultipartBody.contentType() |
abstract MediaType |
RequestBody.contentType() |
abstract MediaType |
ResponseBody.contentType() |
MediaType |
FormBody.contentType() |
MediaType |
MultipartBody.type() |
| Modifier and Type | Method and Description |
|---|---|
static RequestBody |
RequestBody.create(MediaType contentType,
byte[] content) |
static ResponseBody |
ResponseBody.create(MediaType contentType,
byte[] content) |
static RequestBody |
RequestBody.create(MediaType contentType,
byte[] content,
int offset,
int byteCount) |
static RequestBody |
RequestBody.create(MediaType contentType,
ByteString content) |
static ResponseBody |
ResponseBody.create(MediaType contentType,
ByteString content) |
static RequestBody |
RequestBody.create(MediaType contentType,
File file) |
static ResponseBody |
ResponseBody.create(MediaType contentType,
long contentLength,
BufferedSource content) |
static RequestBody |
RequestBody.create(MediaType contentType,
String content) |
static ResponseBody |
ResponseBody.create(MediaType contentType,
String content) |
static String |
HttpUtils.post(String url,
Map<String,Object> map,
Map<String,Object> hearder,
MediaType mediaType)
sync processing of POST requests, custom request types
|
static void |
HttpUtils.post(String url,
Map<String,Object> map,
Map<String,Object> hearder,
MediaType mediaType,
Callback callback)
handle POST requests asynchronously and customize the request type
|
static String |
HttpUtils.post(String url,
String data,
Map<String,Object> hearder,
MediaType mediaType)
sync processing of POST requests, custom request types
|
MultipartBody.Builder |
MultipartBody.Builder.setType(MediaType type) |
| Modifier and Type | Method and Description |
|---|---|
MediaType |
RealResponseBody.contentType() |
Copyright © 2019. All rights reserved.