add ability to set the retry handler of the http client