httpClient

public final NylasClient.Builder httpClient(OkHttpClient.Builder httpClient)

Set the OkHttpClient.Builder for the NylasClient.

By default, the NylasClient configures it as follows: .protocols(Arrays.asList(Protocol.HTTP_1_1)) .connectTimeout(60, TimeUnit.SECONDS) .readTimeout(60, TimeUnit.SECONDS) .writeTimeout(60, TimeUnit.SECONDS) .addNetworkInterceptor(new HttpLoggingInterceptor()

Parameters

httpClient

The custom OkHttpClient.Builder to use.