'Return L{True} if this request is using a secure transport.
Normally this method returns L{True} if this request\'s L{HTTPChannel}
instance is using a transport that implements
L{interfaces.ISSLTransport}.
This will also return L{True} if L{Request.setHost} has been called
with C{ssl=True}.
@returns: L{True} if this request is secure
@rtype: C{bool}'

def isSecure(self):

    if self._forceSSL:
        return True
    channel = getattr(self, 'channel', None)
    if (channel is None):
        return False
    return channel.isSecure()
