retrofit.client
Class OkClient
java.lang.Object
retrofit.client.UrlConnectionClient
retrofit.client.OkClient
- All Implemented Interfaces:
- Client
public class OkClient
- extends UrlConnectionClient
Retrofit client that uses OkHttp for communication.
Constructor Summary |
OkClient()
|
OkClient(com.squareup.okhttp.OkHttpClient client)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
OkClient
public OkClient()
OkClient
public OkClient(com.squareup.okhttp.OkHttpClient client)
openConnection
protected HttpURLConnection openConnection(Request request)
throws IOException
- Overrides:
openConnection
in class UrlConnectionClient
- Throws:
IOException
Copyright © 2013 Square, Inc.. All Rights Reserved.