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).)
_webContextFactory =
An object providing a getContext method with hostname and port arguments. (type: WebClientContextFactory (or object with a similar getContext method).)
def __init__(self, webContextFactory): (source)

Wrap a web context factory in an IPolicyForHTTPS.

ParameterswebContextFactoryAn object providing a getContext method with hostname and port arguments. (type: WebClientContextFactory (or object with a similar getContext method).)
def creatorForNetloc(self, hostname, port): (source)

Called the wrapped web context factory's getContext method with a hostname and port number and return the resulting context object.

ParametershostnameThe hostname part of the URI. (type: bytes)
portThe port part of the URI. (type: int)
ReturnsAn old-style context factory. (type: object with getContext method, like twisted.internet.ssl.ContextFactory.)
API Documentation for Twisted, generated by pydoctor at 2015-09-04 15:29:41.