public URI toUri(SessionProtocol sessionProtocol, @Nullable String path) {
        requireNonNull(sessionProtocol, "sessionProtocol");

        return toUri(Scheme.of(SerializationFormat.NONE, sessionProtocol), path);
    }
Converts this endpoint into a URI using the {@link SessionProtocol} and {@code path}.

@param sessionProtocol the {@link SessionProtocol} for {@link URI}.
@param path the {@code path} for {@link URI}.

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