Part of twisted.web.client View Source View In Hierarchy
| 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).)
IPolicyForHTTPS.| Parameters | webContextFactory | An object providing a getContext method with hostname and
port arguments. (type: WebClientContextFactory
(or object with a similar getContext method).) |
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.) | |