twisted.web.client._DeprecatedToCurrentPolicyForHTTPS(object) class documentationtwisted.web.client
View Source
(View In Hierarchy)
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 | creatorForNetloc | Called the wrapped web context factory's getContext method
with a hostname and port number and return the resulting context
object. |
| Instance Variable | _webContextFactory | An object providing a getContext method with hostname and
port arguments. (type: WebClientContextFactory
(or object with a similar getContext method).) |
hostname and
port arguments. (type: WebClientContextFactory
(or object with a similar getContext method).)
Wrap a web context factory in an IPolicyForHTTPS.
| Parameters | webContextFactory | An object providing a getContext method with hostname and
port arguments. (type: WebClientContextFactory
(or object with a similar getContext method).) |
Called the wrapped web context factory's getContext method
with a hostname and port number and return the resulting context
object.
| Parameters | hostname | The hostname part of the URI. (type: bytes) |
| port | The port part of the URI. (type: int) | |
| Returns | An old-style context factory. (type: object with getContext method, like twisted.internet.ssl.ContextFactory.) | |