Android代码 retrofit1 okhttp3 client
Retrofit 1 OkHttp 3 Client A OkHttp 3 client implementation for Retrofit 1. Usage Create an instance of Ok3Client wrapping your OkHttpClient or Call.Factory and pass it to setClient. OkHttpClient client = // ... RestAdapter restAdapter = new RestAdapter.Builder() .setClient(new Ok3Client(client)