'Create an L{Agent} with an https scheme and return its endpoint
created according to the arguments.
@param host: The host for the endpoint.
@type host: L{bytes}
@param port: The port for the endpoint.
@type port: L{int}
@return: An endpoint of an L{Agent} constructed according to args.
@rtype: L{SSL4ClientEndpoint}'

def makeEndpoint(self, host='example.com', port=443):

    return client.Agent(self.createReactor())._getEndpoint(URI.fromBytes((((('https://' + host) + ':') + intToBytes(port)) + '/')))
