Package-level declarations

Types

Link copied to clipboard

Java-friendly mirror of installDevConsole. Kotlin extension functions are not callable as instance methods from Java, so this object gives Java hosts the same one-call installer:

Link copied to clipboard
class DevConsoleOkHttpEventListenerFactory @JvmOverloads constructor(delegate: EventListener.Factory? = null) : EventListener.Factory

Bridges OkHttp's EventListener callbacks -- the only place DNS/connect/TLS/wait/download phase boundaries are observable -- into the NetworkTimingPhases that DevConsoleOkHttpInterceptor attaches to a recorded transaction.

Link copied to clipboard
class DevConsoleOkHttpInterceptor @JvmOverloads constructor(recorder: NetworkTransactionRecorder, timingsProvider: DevConsoleOkHttpEventListenerFactory? = null) : Interceptor

OkHttp application interceptor that only ever captures a bounded copy of request/response bodies and never lets a capture failure change what the host call sees. All capture errors are isolated from the host call; chain.proceed's result (success or thrown exception) is always exactly what reaches the caller.

Functions

Link copied to clipboard
fun OkHttpClient.Builder.installDevConsole(recorder: NetworkTransactionRecorder, existingEventListenerFactory: EventListener.Factory? = null): OkHttpClient.Builder

One-call installer for the OkHttp adapter.