pulled out HTTP class for reading and responding to client