default int resolve(String scheme, NamedEndpoint endpoint) {
        return resolve(new HttpHost(scheme, endpoint));
    }
Returns the actual port for the host based on the protocol scheme.

@since 5.2
httpclient5/src/main/java/org/apache/hc/client5/http/SchemePortResolver.java