twisted.web.http._GenericHTTPChannelProtocol(proxyForInterface(IProtocol, '_channel'))
class documentationtwisted.web.http
View Source
(View In Hierarchy)
A proxy object that wraps one of the HTTP protocol objects, and switches between them depending on TLS negotiated protocol.
Method | requestFactory 0 | Undocumented |
Method | requestFactory | Undocumented |
Method | site 0 | Undocumented |
Method | site | Undocumented |
Method | dataReceived | A 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 ) |
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 override of IProtocol.dataReceived
that checks what protocol we're using.