| Package | Description |
|---|---|
| com.squareup.okhttp | |
| com.squareup.okhttp.internal.http | |
| com.squareup.okhttp.internal.ws | |
| com.squareup.okhttp.recipes | |
| com.squareup.okhttp.ws |
| 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 |
HttpStream.openResponseBody(Response response)
Returns a stream that reads the response body.
|
ResponseBody |
Http2xStream.openResponseBody(Response response) |
ResponseBody |
Http1xStream.openResponseBody(Response response) |
| Modifier and Type | Method and Description |
|---|---|
void |
WebSocketReader.FrameCallback.onMessage(ResponseBody body) |
| Modifier and Type | Method and Description |
|---|---|
void |
WebSocketEcho.onMessage(ResponseBody message) |
| Modifier and Type | Method and Description |
|---|---|
void |
WebSocketListener.onMessage(ResponseBody message)
Called when a server message is received.
|
Copyright © 2017. All Rights Reserved.