Implement cancel functionality in THTTPClient

Change-Id: Id3da4e9dbb1259224c5623f52c8074c1262f4b12