code: public URI getListeningURI() {
      try {
        return new URI(this.serverUri.getScheme(), this.serverUri.getUserInfo(), this.serverUri.getHost(), this.port,
            null, null, null);
      } catch (URISyntaxException use) {
        throw new RuntimeException("Invalid URI. This is an error in code.", use);
      }
    }
docs: Get the scheme and authority at which this server is listening.