HTTPS support

Is there a reason for it to be a class instead of simply an object of functions?