Support for canceling http requests