httpservice: implement https

We also implement support for https, when desired, inside httprelation.