create class for http requests