| Package | Description |
|---|---|
| okhttp3 | |
| okhttp3.internal.http |
| Modifier and Type | Field and Description |
|---|---|
static MediaType |
MultipartBody.ALTERNATIVE
The "multipart/alternative" type is syntactically identical to "multipart/mixed", but the semantics are different.
|
static MediaType |
MultipartBody.DIGEST
This type is syntactically identical to "multipart/mixed", but the semantics are different.
|
static MediaType |
MultipartBody.FORM
The media-type multipart/form-data follows the rules of all multipart MIME data streams as outlined in RFC 2046.
|
static MediaType |
MultipartBody.MIXED
The "mixed" subtype of "multipart" is intended for use when the body parts are independent and need to be bundled in a particular order.
|
static MediaType |
MultipartBody.PARALLEL
This type is syntactically identical to "multipart/mixed", but the semantics are different.
|
| Modifier and Type | Method and Description |
|---|---|
abstract MediaType |
ResponseBody.contentType()
|
MediaType |
MultipartBody.contentType()
A combination of
MultipartBody and
MultipartBody.
|
abstract MediaType |
RequestBody.contentType()
Returns the Content-Type header for this body.
|
MediaType |
FormBody.contentType()
|
static MediaType |
MediaType.parse(String
Returns a media type for
string, or null if
string is not a well-formed media type.
|
MediaType |
MultipartBody.type()
|
| Modifier and Type | Method and Description |
|---|---|
static ResponseBody |
ResponseBody.create(MediaType
Returns a new response body that transmits
content.
|
static RequestBody |
RequestBody.create(MediaType
Returns a new request body that transmits
content.
|
static RequestBody |
RequestBody.create(MediaType
Returns a new request body that transmits
content.
|
static RequestBody |
RequestBody.create(MediaType
Returns a new request body that transmits
content.
|
static RequestBody |
RequestBody.create(MediaType
Returns a new request body that transmits the content of
file.
|
static ResponseBody |
ResponseBody.create(MediaType
Returns a new response body that transmits
content.
|
static ResponseBody |
ResponseBody.create(MediaType
Returns a new response body that transmits
content.
|
static RequestBody |
RequestBody.create(MediaType
Returns a new request body that transmits
content.
|
MultipartBody |
MultipartBody.Builder.setType(MediaType
Set the MIME type.
|
| Modifier and Type | Method and Description |
|---|---|
MediaType |
RealResponseBody.contentType()
|