public URI toUri(String scheme) {
        requireNonNull(scheme, "scheme");

        return toUri(scheme, null);
    }
Converts this endpoint into a URI using the {@code scheme}.

@param scheme the {@code scheme} for {@link URI}.

@return the URI
core/src/main/java/com/linecorp/armeria/client/Endpoint.java