//okhttp/okhttp3/Interceptor/Companion/invoke
invoke¶
[jvm]\ inline operator fun invoke(crossinline block: (chain: Interceptor.Chain) -> Response): Interceptor
Constructs an interceptor for a lambda. This compact syntax is most useful for inline interceptors.
val interceptor = Interceptor { chain: Interceptor.Chain ->
chain.proceed(chain.request())
}