implement HttpsProxyAgent