@Override
                        public void failed(final Exception ex) {
                            System.out.println(request + "->" + ex);
                        }
A simple example that uses HttpClient to execute an HTTP request against
a target site that requires user authentication.
httpclient5/src/test/java/org/apache/hc/client5/http/examples/AsyncPreemptiveBasicClientAuthentication.java