devxlogo

February 24, 2020

Browsers warn that synchronous XHR on the main thread is deprecated and hurts UX

How to Trigger a Synchronous GET Request

Java’s modern HttpClient (introduced in Java 11, fully stable through Java 21 and 25) is the canonical way to issue HTTP requests from server-side Java. For a simple synchronous GET,