| Package | Description |
|---|---|
| okhttp3 |
An HTTP+HTTP/2 client for Android and Java applications.
|
| okhttp3.internal |
| Modifier and Type | Class and Description |
|---|---|
class |
FormBody |
class |
MultipartBody
An RFC 2387-compliant request body.
|
| Modifier and Type | Method and Description |
|---|---|
RequestBody |
MultipartBody.Part.body() |
RequestBody |
Request.body() |
static RequestBody |
RequestBody.create(MediaType contentType,
byte[] content)
Returns a new request body that transmits
content. |
static RequestBody |
RequestBody.create(MediaType contentType,
byte[] content,
int offset,
int byteCount)
Returns a new request body that transmits
content. |
static RequestBody |
RequestBody.create(MediaType contentType,
okio.ByteString content)
Returns a new request body that transmits
content. |
static RequestBody |
RequestBody.create(MediaType contentType,
File file)
Returns a new request body that transmits the content of
file. |
static RequestBody |
RequestBody.create(MediaType contentType,
String content)
Returns a new request body that transmits
content. |
| Modifier and Type | Method and Description |
|---|---|
MultipartBody.Builder |
MultipartBody.Builder.addFormDataPart(String name,
String filename,
RequestBody body)
Add a form data part to the body.
|
MultipartBody.Builder |
MultipartBody.Builder.addPart(Headers headers,
RequestBody body)
Add a part to the body.
|
MultipartBody.Builder |
MultipartBody.Builder.addPart(RequestBody body)
Add a part to the body.
|
static MultipartBody.Part |
MultipartBody.Part.create(Headers headers,
RequestBody body) |
static MultipartBody.Part |
MultipartBody.Part.create(RequestBody body) |
static MultipartBody.Part |
MultipartBody.Part.createFormData(String name,
String filename,
RequestBody body) |
Request.Builder |
Request.Builder.delete(RequestBody body) |
Request.Builder |
Request.Builder.method(String method,
RequestBody body) |
Request.Builder |
Request.Builder.patch(RequestBody body) |
Request.Builder |
Request.Builder.post(RequestBody body) |
Request.Builder |
Request.Builder.put(RequestBody body) |
| Modifier and Type | Field and Description |
|---|---|
static RequestBody |
Util.EMPTY_REQUEST |
Copyright © 2017. All Rights Reserved.