public < T > T put ( final Class < T > type , @ DelegatesTo ( HttpConfig . class ) final Closure closure ) { return type . cast ( interceptors . get ( HttpVerb . PUT ) . apply ( configureRequest ( type , HttpVerb . PUT , closure ) , this :: doPut ) ) ; }
Executes an PUT request on the configured URI with additional configuration provided by the configuration closure . The result will be cast to the specified type .