mirror of
https://github.com/apple/pkl.git
synced 2026-01-11 22:30:54 +01:00
Use java.net.http.HttpClient instead of legacy java.net.Http(s)URLConnection #67
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @odenix on GitHub (Feb 14, 2024).
Moving to
java.net.http.HttpClientbrings many benefits, including:SSLSocketFactoryInstead of directly interfacing with
java.net.http.HttpClient, I'd recommend to introduce a lightweightorg.pkl.core.http.HttpClientfacade. This keeps some flexibility and allows to enforce things like settingUser-Agent.If this sounds good, I'll work on a draft PR.
@bioball commented on GitHub (Feb 14, 2024):
Hi, this sounds good! Go ahead and submit a PR for this.