| Modifier and Type | Method and Description |
|---|---|
ResponseBody |
Response.body()
Never
null, must be closed after consumption, can be consumed only once. |
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) |
Copyright © 2016. All Rights Reserved.