Cancel HTTP request

Adds a cancelHttpRequest method to the Net interface as requested in #915.