class twisted.web.http._GenericHTTPChannelProtocol(proxyForInterface(IProtocol, '_channel')): (source)
A proxy object that wraps one of the HTTP protocol objects, and switches between them depending on TLS negotiated protocol.
Property | factory | |
Method | factory.setter | Undocumented |
Property | requestFactory | A callable to use to build IRequest objects. |
Method | requestFactory.setter | A callable to use to build IRequest objects. |
Property | site | A reference to the creating twisted.web.server.Site object. |
Method | site.setter | A reference to the creating twisted.web.server.Site object. |
Property | timeOut | The idle timeout for the backing channel. |
Method | timeOut.setter | The idle timeout for the backing channel. |
Property | callLater | A value for the callLater callback. This callback is used by the twisted.protocols.policies.TimeoutMixin to handle timeouts. |
Method | callLater.setter | Sets the value for the callLater callback. This callback is used by the twisted.protocols.policies.TimeoutMixin to handle timeouts. |
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. |
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 . |
Instance Variable | _requestFactory | A callable to use to build IRequest objects. |
Instance Variable | _site | A reference to the creating twisted.web.server.Site object. |
Instance Variable | _factory | A reference to the creating HTTPFactory object. |
Instance Variable | _timeOut | A timeout value to pass to the backing channel. |
Instance Variable | _callLater | A value for the callLater callback. |
None
if no protocol has yet been negotiated.)
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
.HTTPChannel
)
twisted.web.server.Site
object.twisted.web.server.Site
)
A callable to use to build IRequest
objects.
Retries the object from the current backing channel.
A reference to the creating twisted.web.server.Site
object.
Returns the site object from the backing channel.
A reference to the creating twisted.web.server.Site
object.
Sets the object on the backing channel and also stores the value for propagation to any new channel.
Parameters | value | The twisted.web.server.Site object to set. (type: twisted.web.server.Site ) |
A value for the callLater
callback. This callback is used by the twisted.protocols.policies.TimeoutMixin
to handle timeouts.
Sets the value for the callLater
callback. This callback is used by the twisted.protocols.policies.TimeoutMixin
to handle timeouts.
Parameters | value | The new callback to use. (type: callable ) |
An override of IProtocol.dataReceived
that checks what protocol we're using.