Added thread safe http client support