package com.fireflysource.net.http.client;

import java.net.SocketAddress;
import java.util.concurrent.CompletableFuture;

/**
 * The HTTP client connection manager maintains the HTTP client connections. If it creates connection and negotiates the
 * HTTP version is 2.0, and it maintains only one connection to send the request and receive the response.
 * If the HTTP version is 1.1, it maintains the  HTTP connections in a pool.
 *
 * @author Pengtao Qiu
 */
public interface HttpClientConnectionManager {

    /**
     * Get HTTP client connection.
     *
     * @param address The socket address.
     * @return The HTTP client connection.
     */
    CompletableFuture<HttpClientConnection> getConnection(SocketAddress address);

}

@@ -196,16 +196,19 @@
 ections.
+%0A *
  If it c
@@ -243,19 +243,16 @@
 ates the
-%0A *
  HTTP ve

add http client connection manager API