class wrapping http requests