| Package | Description |
|---|---|
| com.squareup.okhttp | |
| com.squareup.okhttp.internal.http |
| Modifier and Type | Method and Description |
|---|---|
ResponseBody |
Response.body() |
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. |
| Modifier and Type | Method and Description |
|---|---|
Response.Builder |
Response.Builder.body(ResponseBody body) |
| Modifier and Type | Class and Description |
|---|---|
class |
RealResponseBody |
| Modifier and Type | Method and Description |
|---|---|
ResponseBody |
SpdyTransport.openResponseBody(Response response) |
ResponseBody |
HttpTransport.openResponseBody(Response response) |
ResponseBody |
Transport.openResponseBody(Response response)
Returns a stream that reads the response body.
|
Copyright © 2015. All rights reserved.