Implement cancelHttpRequest method