A dummy HTTP channel, that does nothing but holds a transport and saves connection lost.

Instance Variable transport the transport used by the client.
Instance Variable lostReason the reason saved at connection lost.
Method __init__ Hold a reference to the transport.
Method connectionLost Keep track of the connection lost reason.
Method getPeer Get peer information from the transport.
Method getHost Get host information from the transport.
transport =
the transport used by the client.
lostReason =
the reason saved at connection lost.
def __init__(self, transport):

Hold a reference to the transport.

def connectionLost(self, reason):

Keep track of the connection lost reason.

def getPeer(self):

Get peer information from the transport.

def getHost(self):

Get host information from the transport.

API Documentation for twisted, generated by pydoctor at 2020-03-25 17:34:30.