implemented proxy for http client