twisted.web.http._GenericHTTPChannelProtocol(proxyForInterface(IProtocol, '_channel')) class documentationtwisted.web.http
(View In Hierarchy)
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 | A callable to use to build IRequestobjects. | 
| Method | requestFactory | A callable to use to build IRequestobjects. | 
| Method | site 0 | A reference to the creating twisted.web.server.Siteobject. | 
| Method | site | A reference to the creating twisted.web.server.Siteobject. | 
| Method | timeOut 0 | The idle timeout for the backing channel. | 
| Method | timeOut | The idle timeout for the backing channel. | 
| Method | callLater 0 | A value for the callLatercallback. This callback is used 
by thetwisted.protocols.policies.TimeoutMixinto handle timeouts. | 
| Method | callLater | Sets the value for the callLatercallback. This callback is
used by thetwisted.protocols.policies.TimeoutMixinto handle timeouts. | 
| Method | dataReceived | An override of IProtocol.dataReceivedthat 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 Noneif no protocol has yet been negotiated.) | 
| Instance Variable | _channel | The object capable of behaving like a HTTPChannelthat 
is backing this object. By default this is aHTTPChannel, but 
if a HTTP protocol upgrade takes place this may be a different channel 
object. Must implementIProtocol. (type:HTTPChannel) | 
| Instance Variable | _requestFactory | A callable to use to build IRequestobjects. (type:IRequest) | 
| Instance Variable | _site | A reference to the creating twisted.web.server.Siteobject. (type:twisted.web.server.Site) | 
| Instance Variable | _factory | A reference to the creating HTTPFactoryobject. (type:HTTPFactory) | 
| Instance Variable | _timeOut | A timeout value to pass to the backing channel. (type: intorNone) | 
| Instance Variable | _callLater | A value for the callLatercallback. (type:callable) | 
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. (type: HTTPChannel)
  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.Siteobject 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.