Implement basic http request handling