Support multithread in http client.