| Modifier and Type | Method | 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. |
static ResponseBody |
ResponseBody.create(MediaType contentType,
okio.ByteString 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 | Description |
|---|---|---|
Response.Builder |
Response.Builder.body(ResponseBody body) |
Copyright © 2020. All rights reserved.