public <T> HttpResponse<T> httpRequest(String url, String method, HttpHeaders headers, Object requestBodyData,
                                                  TypeReference<T> responseFormat) {
        return httpRequest(url, method, headers, requestBodyData, responseFormat, null, null);
    }
Sends HTTP request to remote REST server

@param url             HTTP connection will be established with this url, non-null.
@param method          HTTP method ("GET", "POST", "PUT", etc.), non-null
@param headers         HTTP headers from REST endpoint
@param requestBodyData Object to serialize as JSON and send in the request body.
@param responseFormat  Expected format of the response to the HTTP request, non-null.
@param <T>             The type of the deserialized response to the HTTP request.
@return The deserialized response to the HTTP request, containing null if no data is expected or returned.
connect/runtime/src/main/java/org/apache/kafka/connect/runtime/rest/RestClient.java