def isEncrypted(self, direction="out"):
        if direction == "out":
            return self.currentEncryptions.outCipType != b'none'
        elif direction == "in":
            return self.currentEncryptions.inCipType != b'none'
        elif direction == "both":
            return self.isEncrypted("in") and self.isEncrypted("out")
        else:
            raise TypeError('direction must be "out", "in", or "both"')
Helper to build a firewall rule for HTTP connections
dataset/ETHPy150Open twisted/twisted/twisted/conch/ssh/transport.py/SSHTransportBase.isEncrypted--crossover with--dataset/ETHPy150Open ronnix/fabtools/fabtools/shorewall.py/HTTP