larksuite-oapi/src/main/java/com/larksuite/oapi/okhttp3_14/HttpUrl.java
public Builder host(String host) {
      if (host == null) throw new NullPointerException("host == null");
      String encoded = canonicalizeHost(host, 0, host.length());
      if (encoded == null) throw new IllegalArgumentException("unexpected host: " + host);
      this.host = encoded;
      return this;
    }
/**
     * @param host either a regular hostname, International Domain Name, IPv4 address, or IPv6
     * address.
     */
@param host either a regular hostname, International Domain Name, IPv4 address, or IPv6
address.
@param host either a regular hostname International Domain Name IPv4 address or IPv6 address .
public Builder host(String host) {
      if (host == null) throw new NullPointerException("host == null");
      String encoded = canonicalizeHost(host, 0, host.length());
      if (encoded == null) throw new IllegalArgumentException("unexpected host: " + host);
      this.host = encoded;
      return this;
    }
public Builder host ( String host ) { if ( host == null ) throw new NullPointerException ( "host == null" ) ; String encoded = canonicalizeHost ( host , 0 , host . length ( ) ) ; if ( encoded == null ) throw new IllegalArgumentException ( "unexpected host: " + host ) ; this . host = encoded ; return this ; }
@param host either a regular hostname, International Domain Name, IPv4 address, or IPv6
 address.
@param host either a regular hostname International Domain Name IPv4 address or IPv6 address .