| Package | Description |
|---|---|
| okhttp3 |
An HTTP+HTTP/2 client for Android and Java applications.
|
| okhttp3.internal | |
| okhttp3.internal.http | |
| okhttp3.internal.http1 | |
| okhttp3.internal.http2 |
| Modifier and Type | Method and Description |
|---|---|
ResponseBody |
Response.body()
Returns a non-null value if this response was passed to
Callback.onResponse(okhttp3.Call, okhttp3.Response) or returned
from Call.execute(). |
static ResponseBody |
ResponseBody.create(MediaType contentType,
byte[] content)
Returns a new response body that transmits
content. |
static ResponseBody |
ResponseBody.create(MediaType contentType,
long contentLength,
okio.BufferedSource content)
Returns a new response body that transmits
content. |
static ResponseBody |
ResponseBody.create(MediaType contentType,
String content)
Returns a new response body that transmits
content. |
ResponseBody |
Response.peekBody(long byteCount)
Peeks up to
byteCount bytes from the response body and returns them as a new response
body. |
| Modifier and Type | Method and Description |
|---|---|
Response.Builder |
Response.Builder.body(ResponseBody body) |
| Modifier and Type | Field and Description |
|---|---|
static ResponseBody |
Util.EMPTY_RESPONSE |
| Modifier and Type | Class and Description |
|---|---|
class |
RealResponseBody |
| Modifier and Type | Method and Description |
|---|---|
ResponseBody |
HttpCodec.openResponseBody(Response response)
Returns a stream that reads the response body.
|
| Modifier and Type | Method and Description |
|---|---|
ResponseBody |
Http1Codec.openResponseBody(Response response) |
| Modifier and Type | Method and Description |
|---|---|
ResponseBody |
Http2Codec.openResponseBody(Response response) |
Copyright © 2017. All Rights Reserved.