Search in sources :

Example 1 with OkHttpRequestor

use of com.dropbox.core.http.OkHttpRequestor in project dropbox-sdk-java by dropbox.

the class ITUtil method newOkHttpRequestor.

public static OkHttpRequestor newOkHttpRequestor() {
    OkHttpClient httpClient = OkHttpRequestor.defaultOkHttpClient().clone();
    httpClient.setReadTimeout(READ_TIMEOUT, TimeUnit.MILLISECONDS);
    return new OkHttpRequestor(httpClient);
}
Also used : OkHttpClient(com.squareup.okhttp.OkHttpClient) OkHttpRequestor(com.dropbox.core.http.OkHttpRequestor)

Aggregations

OkHttpRequestor (com.dropbox.core.http.OkHttpRequestor)1 OkHttpClient (com.squareup.okhttp.OkHttpClient)1