okhttp / okhttp3 / Interceptor / Chain / connection

connection

abstract fun connection(): Connection?

Returns the connection the request will be executed on. This is only available in the chains of network interceptors; for application interceptors this is always null.