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(90, TimeUnit.SECONDS) .readTimeout(90, TimeUnit.SECONDS) .writeTimeout(90, TimeUnit.SECONDS) .addNetworkInterceptor(new HttpLoggingInterceptor()

Parameters

httpClient

The custom OkHttpClient.Builder to use.