support custom http/https Agent