public EndpointInfo getInfo() {
        return null;
    }
Returns information about the endpoint or {@code null} when not connected.

@since 5.4
httpclient5/src/main/java/org/apache/hc/client5/http/io/ConnectionEndpoint.java