public static Request.Builder buildRequestBuilder(final String url, final Map<String, ?> form,
        final HTTPMethod method) {
        switch (method) {
            case GET:
                return new Request.Builder()
                    .url(buildHttpUrl(url, form))
                    .get();
            case HEAD:
                return new Request.Builder()
                    .url(buildHttpUrl(url, form))
                    .head();
            case PUT:
                return new Request.Builder()
                    .url(buildHttpUrl(url))
                    .put(buildFormBody(form));
            case DELETE:
                return new Request.Builder()
                    .url(buildHttpUrl(url))
                    .delete(buildFormBody(form));
            default:
                return new Request.Builder()
                    .url(buildHttpUrl(url))
                    .post(buildFormBody(form));
        }
    }
buildRequestBuilder.

@param url    url
@param form   form
@param method method
@return Request
shenyu-admin/src/main/java/org/apache/shenyu/admin/utils/HttpUtils.java