larksuite-oapi/src/main/java/com/larksuite/oapi/okhttp3_14/Request.java
public Builder url(String url) {
            if (url == null) throw new NullPointerException("url == null");

            // Silently replace web socket URLs with HTTP URLs.
            if (url.regionMatches(true, 0, "ws:", 0, 3)) {
                url = "http:" + url.substring(3);
            } else if (url.regionMatches(true, 0, "wss:", 0, 4)) {
                url = "https:" + url.substring(4);
            }

            return url(HttpUrl.get(url));
        }
/**
         * Sets the URL target of this request.
         *
         * @throws IllegalArgumentException if {@code url} is not a valid HTTP or HTTPS URL. Avoid this
         *                                  exception by calling {@link HttpUrl#parse}; it returns null for invalid URLs.
         */
Sets the URL target of this request.
@throws IllegalArgumentException if  url is not a valid HTTP or HTTPS URL. Avoid this
exception by calling  HttpUrl#parse; it returns null for invalid URLs.
Sets the URL target of this request . @throws IllegalArgumentException if url is not a valid HTTP or HTTPS URL . Avoid this exception by calling HttpUrl#parse ; it returns null for invalid URLs .
public Builder url(String url) {
            if (url == null) throw new NullPointerException("url == null");
            if (url.regionMatches(true, 0, "ws:", 0, 3)) {
                url = "http:" + url.substring(3);
            } else if (url.regionMatches(true, 0, "wss:", 0, 4)) {
                url = "https:" + url.substring(4);
            }
            return url(HttpUrl.get(url));
        }
public Builder url ( String url ) { if ( url == null ) throw new NullPointerException ( "url == null" ) ; if ( url . regionMatches ( true , 0 , "ws:" , 0 , 3 ) ) { url = "http:" + url . substring ( 3 ) ; } else if ( url . regionMatches ( true , 0 , "wss:" , 0 , 4 ) ) { url = "https:" + url . substring ( 4 ) ; } return url ( HttpUrl . get ( url ) ) ; }
Sets the URL target of this request.
Sets the URL target of this request .
// Silently replace web socket URLs with HTTP URLs.