rest-assured/src/main/java/io/restassured/internal/http/HTTPBuilder.java
public Object request(Object uri, String method, Object contentType, boolean hasBody, Closure configClosure)
            throws ClientProtocolException, IOException, URISyntaxException {
        return this.doRequest(URIBuilder.convertToURI(uri), method, contentType, hasBody, configClosure);
    }
public Object request(Object uri, String method, Object contentType, boolean hasBody, Closure configClosure)
            throws ClientProtocolException, IOException, URISyntaxException {
        return this.doRequest(URIBuilder.convertToURI(uri), method, contentType, hasBody, configClosure);
    }
public Object request ( Object uri , String method , Object contentType , boolean hasBody , Closure configClosure ) throws ClientProtocolException , IOException , URISyntaxException { return this . doRequest ( URIBuilder . convertToURI ( uri ) , method , contentType , hasBody , configClosure ) ; }
Make a request for the given HTTP method and content-type, with
additional options configured in the <code>configClosure</code>.  See
{@link RequestConfigDelegate} for options.

@param uri           either a {@link URL}, {@link URI} or object whose
<code>toString()</code> produces a valid URI string.  See
{@link URIBuilder#convertToURI(Object)}.
@param method        {@link HttpRequestFactory HTTP method}
@param contentType   either a {@link ContentType} or valid content-type string.
@param configClosure closure from which to configure options like
{@link RequestConfigDelegate#getUri() uri.path},
{@link URIBuilder#setQuery(Map) request parameters},
{@link RequestConfigDelegate#setHeaders(Map) headers},
{@link RequestConfigDelegate#setBody(Object, Object) request body} and
{@link RequestConfigDelegate#getResponse() response handlers}.
@return whatever value was returned by the executed response handler.
@throws ClientProtocolException
@throws IOException
@throws URISyntaxException      if the uri argument does not represent a valid URI
Make a request for the given HTTP method and content - type with additional options configured in the <code > configClosure< / code > . See { @link RequestConfigDelegate } for options .