larksuite-oapi/src/main/java/com/larksuite/oapi/okhttp3_14/HttpUrl.java
public URI uri() {
    String uri = newBuilder().reencodeForUri().toString();
    try {
      return new URI(uri);
    } catch (URISyntaxException e) {
      // Unlikely edge case: the URI has a forbidden character in the fragment. Strip it & retry.
      try {
        String stripped = uri.replaceAll("[\\u0000-\\u001F\\u007F-\\u009F\\p{javaWhitespace}]", "");
        return URI.create(stripped);
      } catch (Exception e1) {
        throw new RuntimeException(e); // Unexpected!
      }
    }
  }
/**
   * Returns this URL as a {@link URI java.net.URI}. Because {@code URI} is more strict than this
   * class, the returned URI may be semantically different from this URL:
   *
   * <ul>
   *     <li>Characters forbidden by URI like {@code [} and {@code |} will be escaped.
   *     <li>Invalid percent-encoded sequences like {@code %xx} will be encoded like {@code %25xx}.
   *     <li>Whitespace and control characters in the fragment will be stripped.
   * </ul>
   *
   * <p>These differences may have a significant consequence when the URI is interpreted by a
   * webserver. For this reason the {@linkplain URI URI class} and this method should be avoided.
   */
Returns this URL as a  URI java.net.URI. Because  URI is more strict than this
class, the returned URI may be semantically different from this URL.


Characters forbidden by URI like  [ and  | will be escaped.
Invalid percent-encoded sequences like  %xx will be encoded like  %25xx.
Whitespace and control characters in the fragment will be stripped.

These differences may have a significant consequence when the URI is interpreted by a
webserver. For this reason the  URI URI class and this method should be avoided.
Returns this URL as a URI java . net . URI . Because URI is more strict than this class the returned URI may be semantically different from this URL . Characters forbidden by URI like [ and | will be escaped . Invalid percent - encoded sequences like %xx will be encoded like %25xx . Whitespace and control characters in the fragment will be stripped . These differences may have a significant consequence when the URI is interpreted by a webserver . For this reason the URI URI class and this method should be avoided .
public URI uri() {
    String uri = newBuilder().reencodeForUri().toString();
    try {
      return new URI(uri);
    } catch (URISyntaxException e) {
      try {
        String stripped = uri.replaceAll("[\\u0000-\\u001F\\u007F-\\u009F\\p{javaWhitespace}]", "");
        return URI.create(stripped);
      } catch (Exception e1) {
        throw new RuntimeException(e); 
      }
    }
  }
public URI uri ( ) { String uri = newBuilder ( ) . reencodeForUri ( ) . toString ( ) ; try { return new URI ( uri ) ; } catch ( URISyntaxException e ) { try { String stripped = uri . replaceAll ( "[\\u0000-\\u001F\\u007F-\\u009F\\p{javaWhitespace}]" , "" ) ; return URI . create ( stripped ) ; } catch ( Exception e1 ) { throw new RuntimeException ( e ) ; } } }
Returns this URL as a {@link URI java.net.URI}.
Returns this URL as a { @link URI java . net . URI } .
// Unlikely edge case: the URI has a forbidden character in the fragment. Strip it & retry. // Unexpected!