Made http client configurable.