KOL supports HTTP 2.0 and prefers to use that, while HTTP 1.1 is outdated and a legacy of the past.
It's also slower.
Unfortunately, this does create a small problem as HttpURLConnection, which is used internally, does not support HTTP 2.0
Instead HttpClient seems to the recommended library for usage, included since Java 9.
Mafia's internals looks to be using the HttpURLConnection as request builder, built request, and response. Which is separated into three different objects when using HttpClient.
It's also slower.
Unfortunately, this does create a small problem as HttpURLConnection, which is used internally, does not support HTTP 2.0
Instead HttpClient seems to the recommended library for usage, included since Java 9.
Mafia's internals looks to be using the HttpURLConnection as request builder, built request, and response. Which is separated into three different objects when using HttpClient.