class documentation
class _DeprecatedToCurrentPolicyForHTTPS: (source)
Constructor: _DeprecatedToCurrentPolicyForHTTPS(webContextFactory)
Implements interfaces: twisted.web.iweb.IPolicyForHTTPS
Adapt a web context factory to a normal context factory.
Method | __init__ |
Wrap a web context factory in an IPolicyForHTTPS . |
Method | creator |
Called the wrapped web context factory's getContext method with a hostname and port number and return the resulting context object. |
Instance Variable | _web |
An object providing a getContext method with hostname and port arguments. |
Wrap a web context factory in an IPolicyForHTTPS
.
Parameters | |
webWebClientContextFactory (or object with a similar getContext method). | An object providing a getContext method with hostname and port arguments. |
Called the wrapped web context factory's getContext method with a hostname and port number and return the resulting context object.
Parameters | |
hostname:bytes | The hostname part of the URI. |
port:int | The port part of the URI. |
Returns | |
IOpenSSLContextFactory | A context factory. |
_webContextFactory:
WebClientContextFactory
(or object with a similar getContext method). =
(source)
¶
An object providing a getContext method with hostname and port arguments.