class to send http requests