Allow AsyncHttpClient to be passed in.