okHttpClient

fun ApolloClient.Builder.okHttpClient(okHttpClient: <Error class: unknown class>): ApolloClient.Builder

Configures the ApolloClient to use the OkHttpClient for network requests. The OkHttpClient will be used for both HTTP and WebSocket requests.

See also ApolloClient.Builder.httpEngine and ApolloClient.Builder.webSocketEngine


fun HttpNetworkTransport.Builder.okHttpClient(okHttpClient: <Error class: unknown class>): HttpNetworkTransport.Builder

Configures the HttpNetworkTransport to use the DefaultHttpEngine for network requests.


Configures the WebSocketNetworkTransport to use the okHttpCallFactory for network requests.