private static HttpHost determineTarget(final ClassicHttpRequest request) throws ClientProtocolException {
        try {
            return RoutingSupport.determineHost(request);
        } catch (final HttpException ex) {
            throw new ClientProtocolException(ex);
        }
    }
Base implementation of {@link HttpClient} that also implements {@link ModalCloseable}.

@since 4.3
httpclient5/src/main/java/org/apache/hc/client5/http/impl/classic/CloseableHttpClient.java