Home
last modified time | relevance | path

Searched refs:ResponseBody (Results 1 – 25 of 40) sorted by relevance

12

/external/okhttp/okhttp/src/main/java/com/squareup/okhttp/
DResponseBody.java30 public abstract class ResponseBody implements Closeable { class
99 public static ResponseBody create(MediaType contentType, String content) { in create()
113 public static ResponseBody create(final MediaType contentType, byte[] content) { in create()
119 public static ResponseBody create( in create()
122 return new ResponseBody() { in create()
DResponse.java43 private final ResponseBody body;
129 public ResponseBody body() { in body()
228 private ResponseBody body;
304 public Builder body(ResponseBody body) { in body()
/external/okhttp/repackaged/okhttp/src/main/java/com/android/okhttp/
DResponseBody.java34 public abstract class ResponseBody implements Closeable { class
103 public static ResponseBody create(MediaType contentType, String content) { in create()
117 public static ResponseBody create(final MediaType contentType, byte[] content) { in create()
123 public static ResponseBody create( in create()
126 return new ResponseBody() { in create()
DResponse.java49 private final ResponseBody body;
136 public ResponseBody body() { in body()
238 private ResponseBody body;
314 public Builder body(ResponseBody body) { in body()
/external/okhttp/samples/guide/src/main/java/com/squareup/okhttp/recipes/
DProgress.java22 import com.squareup.okhttp.ResponseBody;
68 private static class ProgressResponseBody extends ResponseBody {
70 private final ResponseBody responseBody;
74 public ProgressResponseBody(ResponseBody responseBody, ProgressListener progressListener) { in ProgressResponseBody()
DWebSocketEcho.java7 import com.squareup.okhttp.ResponseBody;
50 @Override public void onMessage(ResponseBody message) throws IOException { in onMessage()
/external/okhttp/okhttp-ws/src/main/java/com/squareup/okhttp/ws/
DWebSocketListener.java19 import com.squareup.okhttp.ResponseBody;
55 void onMessage(ResponseBody message) throws IOException; in onMessage()
/external/okhttp/okhttp/src/main/java/com/squareup/okhttp/internal/http/
DHttpStream.java21 import com.squareup.okhttp.ResponseBody;
52 ResponseBody openResponseBody(Response response) throws IOException; in openResponseBody()
DRealResponseBody.java20 import com.squareup.okhttp.ResponseBody;
23 public final class RealResponseBody extends ResponseBody {
/external/okhttp/repackaged/okhttp/src/main/java/com/android/okhttp/internal/http/
DRealResponseBody.java21 import com.android.okhttp.ResponseBody;
27 public final class RealResponseBody extends ResponseBody {
DHttpStream.java22 import com.android.okhttp.ResponseBody;
56 ResponseBody openResponseBody(Response response) throws IOException; in openResponseBody()
/external/okhttp/okhttp-ws-tests/src/main/java/com/squareup/okhttp/ws/
DAutobahnTester.java22 import com.squareup.okhttp.ResponseBody;
85 @Override public void onMessage(final ResponseBody message) throws IOException { in runTest()
139 @Override public void onMessage(ResponseBody message) throws IOException { in getTestCount()
176 @Override public void onMessage(ResponseBody message) throws IOException { in updateReports()
/external/okhttp/okhttp-ws-tests/src/test/java/com/squareup/okhttp/internal/ws/
DWebSocketReaderTest.java18 import com.squareup.okhttp.ResponseBody;
156 @Override public void onMessage(ResponseBody message) throws IOException { in serverHelloTwoChunks()
257 @Override public void onMessage(ResponseBody body) throws IOException { in noCloseErrors()
275 @Override public void onMessage(ResponseBody message) throws IOException { in closeExhaustsMessage()
297 @Override public void onMessage(ResponseBody message) throws IOException { in closeExhaustsMessageOverControlFrames()
317 @Override public void onMessage(ResponseBody message) throws IOException { in closedMessageSourceThrows()
/external/okhttp/samples/simple-client/src/main/java/com/squareup/okhttp/sample/
DOkHttpContributors.java8 import com.squareup.okhttp.ResponseBody;
38 ResponseBody body = response.body(); in main()
/external/okhttp/repackaged/okhttp-android-support/src/main/java/com/android/okhttp/internal/huc/
DJavaApiConverter.java25 import com.android.okhttp.ResponseBody;
113 ResponseBody okBody = createOkBody(urlConnection); in createOkResponseForCachePut()
236 ResponseBody okBody = createOkBody(okHeaders, javaResponse); in createOkResponseForCacheGet()
293 final ResponseBody body = response.body(); in createJavaCacheResponse()
474 private static ResponseBody createOkBody(final Headers okHeaders,
476 return new ResponseBody() {
502 private static ResponseBody createOkBody(final URLConnection urlConnection) {
506 return new ResponseBody() {
/external/okhttp/okhttp-android-support/src/main/java/com/squareup/okhttp/internal/huc/
DJavaApiConverter.java24 import com.squareup.okhttp.ResponseBody;
111 ResponseBody okBody = createOkBody(urlConnection); in createOkResponseForCachePut()
234 ResponseBody okBody = createOkBody(okHeaders, javaResponse); in createOkResponseForCacheGet()
291 final ResponseBody body = response.body(); in createJavaCacheResponse()
472 private static ResponseBody createOkBody(final Headers okHeaders,
474 return new ResponseBody() {
500 private static ResponseBody createOkBody(final URLConnection urlConnection) {
504 return new ResponseBody() {
/external/okhttp/okhttp-ws/src/main/java/com/squareup/okhttp/internal/ws/
DWebSocketReader.java19 import com.squareup.okhttp.ResponseBody;
55 void onMessage(ResponseBody body) throws IOException; in onMessage()
227 ResponseBody body = new ResponseBody() { in readMessageFrame()
DRealWebSocket.java20 import com.squareup.okhttp.ResponseBody;
61 @Override public void onMessage(ResponseBody message) throws IOException { in RealWebSocket()
/external/exoplayer/tree/extensions/okhttp/src/test/java/com/google/android/exoplayer2/ext/okhttp/
DOkHttpDataSourceTest.java31 import okhttp3.ResponseBody;
113 .body(ResponseBody.create(MediaType.parse("text/plain"), "")) in open_setsCorrectHeaders()
/external/okhttp/benchmarks/src/main/java/com/squareup/okhttp/benchmarks/
DOkHttpAsync.java24 import com.squareup.okhttp.ResponseBody;
73 ResponseBody body = response.body(); in prepare()
/external/okhttp/okhttp-ws-tests/src/test/java/com/squareup/okhttp/ws/
DWebSocketRecorder.java20 import com.squareup.okhttp.ResponseBody;
36 void onMessage(ResponseBody message) throws IOException; in onMessage()
50 @Override public void onMessage(ResponseBody message) throws IOException { in onMessage()
DWebSocketCallTest.java22 import com.squareup.okhttp.ResponseBody;
222 @Override public void onMessage(ResponseBody message) throws IOException { in awaitWebSocket()
256 @Override public void onMessage(ResponseBody message) throws IOException { in onMessage()
/external/downloader/src/main/java/com/google/android/downloader/
DOkHttp3UrlEngine.java38 import okhttp3.ResponseBody;
184 try (ResponseBody body = checkNotNull(response.body())) { in readResponseBody()
DOkHttp2UrlEngine.java31 import com.squareup.okhttp.ResponseBody;
188 try (ResponseBody body = checkNotNull(response.body())) { in readResponseBody()
/external/okhttp/okhttp-android-support/src/test/java/com/squareup/okhttp/internal/huc/
DJavaApiConverterTest.java25 import com.squareup.okhttp.ResponseBody;
349 ResponseBody responseBody = createResponseBody("BodyText"); in createJavaUrlConnection_responseHeadersOk()
529 ResponseBody responseBody = createResponseBody("ResponseBody"); in createJavaCacheResponse_httpPost()
553 ResponseBody responseBody = createResponseBody("ResponseBody"); in createJavaCacheResponse_httpsPost()
662 private static ResponseBody createResponseBody(String bodyText) { in createResponseBody()
665 return new ResponseBody() { in createResponseBody()

12