okhttp / okhttp3 / OkHttpClient / Builder / connectionPool

connectionPool

fun connectionPool(connectionPool: ConnectionPool): OkHttpClient.Builder

Sets the connection pool used to recycle HTTP and HTTPS connections.

If unset, a new connection pool will be used.