A proxy object that wraps one of the HTTP protocol objects, and switches between them depending on TLS negotiated protocol.

Method factory 0
Method factory Undocumented
Method requestFactory 0 Undocumented
Method requestFactory Undocumented
Method site 0 Undocumented
Method site Undocumented
Method timeOut 0 Undocumented
Method timeOut Undocumented
Method dataReceived An override of IProtocol.dataReceived that checks what protocol we're using.
Instance Variable _negotiatedProtocol The protocol negotiated with ALPN or NPN, if any. (type: Either a bytestring containing the ALPN token for the negotiated protocol, or None if no protocol has yet been negotiated.)
Instance Variable _channel The object capable of behaving like a HTTPChannel that is backing this object. By default this is a HTTPChannel, but if a HTTP protocol upgrade takes place this may be a different channel object. Must implement IProtocol. (type: HTTPChannel)
Instance Variable _requestFactory A callable to use to build IRequest objects. (type: IRequest)
Instance Variable _site A reference to the creating twisted.web.server.Site object. (type: twisted.web.server.Site)
Instance Variable _factory A reference to the creating HTTPFactory object. (type: HTTPFactory)
Instance Variable _timeOut A timeout value to pass to the backing channel. (type: int or None)
_negotiatedProtocol =
The protocol negotiated with ALPN or NPN, if any. (type: Either a bytestring containing the ALPN token for the negotiated protocol, or None if no protocol has yet been negotiated.)
_channel =
The object capable of behaving like a HTTPChannel that is backing this object. By default this is a HTTPChannel, but if a HTTP protocol upgrade takes place this may be a different channel object. Must implement IProtocol. (type: HTTPChannel)
_requestFactory =
A callable to use to build IRequest objects. (type: IRequest)
_site =
A reference to the creating twisted.web.server.Site object. (type: twisted.web.server.Site)
_factory =
A reference to the creating HTTPFactory object. (type: HTTPFactory)
_timeOut =
A timeout value to pass to the backing channel. (type: int or None)
@property
def factory 0(self): (source)
@factory.setter
def factory(self, value): (source)
Undocumented
@property
def requestFactory 0(self): (source)
Undocumented
@requestFactory.setter
def requestFactory(self, value): (source)
Undocumented
@property
def site 0(self): (source)
Undocumented
@site.setter
def site(self, value): (source)
Undocumented
@property
def timeOut 0(self): (source)
Undocumented
@timeOut.setter
def timeOut(self, value): (source)
Undocumented
def dataReceived(self, data): (source)

An override of IProtocol.dataReceived that checks what protocol we're using.

API Documentation for Twisted, generated by pydoctor at 2016-10-29 16:19:29.