public <T> T get(final Class<T> type, final Consumer<HttpConfig> configuration) {
        return type.cast(interceptors.get(HttpVerb.GET).apply(configureRequest(type, HttpVerb.GET, configuration), this::doGet));
    }
public < T > T get ( final Class < T > type , final Consumer < HttpConfig > configuration ) { return type . cast ( interceptors . get ( HttpVerb . GET ) . apply ( configureRequest ( type , HttpVerb . GET , configuration ) , this :: doGet ) ) ; }
Executes a GET request on the configured URI, with additional configuration provided by the configuration function. The result will be cast to
the specified `type`.

This method is generally used for Java-specific configuration.

[source,groovy]
----
HttpBuilder http = HttpBuilder.configure(config -> {
config.getRequest().setUri("http://localhost:10101");
});
String result = http.get(String.class, config -> {
config.getRequest().getUri().setPath("/foo");
});
----

The `configuration` {@link Consumer} allows additional configuration for this request based on the {@link HttpConfig} interface.

@param type the type of the response content
@param configuration the additional configuration function (delegated to {@link HttpConfig})
@return the resulting content cast to the specified type