Change Log - OkHttp

Square’s meticulous HTTP client for the JVM, Android, and GraalVM

Change Log - OkHttp

Square’s meticulous HTTP client for the JVM, Android, and GraalVM

OkHttp 5.2 does connection upgrades. 👩🏽‍✈️
https://square.github.io/okhttp/changelogs/changelog/#version-520
Change Log - OkHttp

Square’s meticulous HTTP client for the JVM, Android, and GraalVM

OkHttp 5.2.1 fixes a crash closing connections on Android Lollipop and Marshmallow! 🍭
https://square.github.io/okhttp/changelogs/changelog/#version-521
Change Log - OkHttp

Square’s meticulous HTTP client for the JVM, Android, and GraalVM

OkHttp 5.3 has a handy place for your metadata. ☎️
https://square.github.io/okhttp/changelogs/changelog/#version-530
Change Log - OkHttp

Square’s meticulous HTTP client for the JVM, Android, and GraalVM

@jessewilson This is really cool! I'm trying to think of what to pass through it.. Maybe a function that refreshes the auth token when a 401 comes up in an interceptor?

@leandrofavarin yep!

Here's our motivating use-case:
1. An EventListener collects trace IDs from a ThreadLocal when a call starts. It attaches them to the Call.
2. An Interceptor propagates the trace IDs as request headers.

Step 1 always runs on an application thread. Step 2 runs on either an application thread (with Call.execute) or a dispatcher thread (Call.enqueue).