private static URI toUri(SessionProtocol sessionProtocol, Endpoint endpoint) {
        try {
            return new URI(sessionProtocol.uriText(), endpoint.authority(), null, null, null);
        } catch (URISyntaxException e) {
            throw new IllegalArgumentException(e);
        }
    }
Converts {@link SessionProtocol}, {@link Endpoint} to a uri without serialization format.
core/src/main/java/com/linecorp/armeria/client/proxy/WrappingProxyConfigSelector.java