Hi 👋, I wanted to write this article to tell you that instantiating a HttpClient class is often a costly operation. If you have a method that does something like: public class Main { static void myMethod() { HttpClient client = new HttpClient() // do stuff } }
HTTPClients are reusable
HTTPClients are reusable
HTTPClients are reusable
Hi 👋, I wanted to write this article to tell you that instantiating a HttpClient class is often a costly operation. If you have a method that does something like: public class Main { static void myMethod() { HttpClient client = new HttpClient() // do stuff } }