@Override
                        public void completed(final SimpleHttpResponse response) {
                            System.out.println(request + "->" + new StatusLine(response));
                            System.out.println("HTTP protocol " + clientContext.getProtocolVersion());
                            final SSLSession sslSession = clientContext.getSSLSession();
                            if (sslSession != null) {
                                System.out.println("SSL protocol " + sslSession.getProtocol());
                                System.out.println("SSL cipher suite " + sslSession.getCipherSuite());
                            }
                            System.out.println(response.getBody());
                        }
This example demonstrates how to make HttpClient negotiate or force a particular
version of HTTP protocol during the TLS handshake.
<p/>
Please note that protocol version policy setting also applies to non-HTTPS
connections.
httpclient5/src/test/java/org/apache/hc/client5/http/examples/AsyncClientHttpVersionPolicy.java