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