finished class for http client