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)
ReturnsA context factory. (type: IOpenSSLContextFactory)
API Documentation for Twisted, generated by pydoctor at 2017-09-23 19:45:03.