Video: https://www.youtube.com/watch?v=dmOrYzS_AKM
OkHttp is a popular library for making network calls. You might use it directly, or with Ktor, Retrofit, Coil, or gRPC.
But this is not a talk on how to use OkHttp. Instead, we’ll open up the code and look at its weird and clever implementation details. We’ll see connection lifecycles, cache state machines, and URL decoders. We’ll learn:
* How OkHttp’s own architecture is a stack of interceptors.
* How you can generate certificates for testing HTTPS.
* The extreme effort OkHttp makes for great performance.
* Three different ways to extend OkHttp.
If you’d like to see some capable and efficient code in Kotlin, this talk is for you.