add a cancel method for the http class
update a small testing demo