[HTTP] Support sha1 and sha256 checksum verification

Fixes https://github.com/CocoaPods/CocoaPods/issues/2105