twisted.web.client._DeprecatedToCurrentPolicyForHTTPS(object) class documentationtwisted.web.client
(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 getContextmethod 
with a hostname and port number and return the resulting context 
object. | 
| Instance Variable | _webContextFactory | An object providing a getContext method with hostnameandportarguments. (type:WebClientContextFactory(or object with a similargetContextmethod).) | 
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 hostnameandportarguments. (type:WebClientContextFactory(or object with a similargetContextmethod).) | 
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 | A context factory. (type: IOpenSSLContextFactory) | |