public URI toUri(SessionProtocol sessionProtocol) {
        requireNonNull(sessionProtocol, "sessionProtocol");

        return toUri(sessionProtocol, null);
    }
Converts this endpoint into a URI using the {@link SessionProtocol}.

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

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