rest-assured/src/main/java/io/restassured/internal/http/HTTPBuilder.java
public Object get(Map<String, ?> args, Closure responseClosure)
            throws ClientProtocolException, IOException, URISyntaxException {
        RequestConfigDelegate delegate = new RequestConfigDelegate(new HttpGet(),
                this.defaultContentType,
                this.defaultRequestHeaders,
                this.defaultResponseHandlers);

        delegate.setPropertiesFromMap(args);
        if (responseClosure != null) delegate.getResponse().put(
                Status.SUCCESS, responseClosure);
        return this.doRequest(delegate);
    }
public Object get(Map<String, ?> args, Closure responseClosure)
            throws ClientProtocolException, IOException, URISyntaxException {
        RequestConfigDelegate delegate = new RequestConfigDelegate(new HttpGet(),
                this.defaultContentType,
                this.defaultRequestHeaders,
                this.defaultResponseHandlers);

        delegate.setPropertiesFromMap(args);
        if (responseClosure != null) delegate.getResponse().put(
                Status.SUCCESS, responseClosure);
        return this.doRequest(delegate);
    }
<p>Convenience method to perform an HTTP GET.  The response closure will
be called only on a successful response.  </p>
<p>
<p>A 'failed' response (i.e. any HTTP status code > 399) will be handled
by the registered 'failure' handler.  The
{@link #defaultFailureHandler(HttpResponseDecorator) default failure handler}
throws an {@link HttpResponseException}.</p>

@param args            see {@link RequestConfigDelegate#setPropertiesFromMap(Map)}
@param responseClosure code to handle a successful HTTP response
@return any value returned by the response closure.
@throws ClientProtocolException
@throws IOException
@throws URISyntaxException      if a uri argument is given which does not
represent a valid URI