def _wrapContextFactory(self, host, port):
"""
Create and return a normal context factory wrapped around
C{self._contextFactory} in such a way that C{self._contextFactory} will
have the host and port information passed to it.
@param host: A C{str} giving the hostname which will be connected to in
order to issue a request.
@param port: An C{int} giving the port number the connection will be
on.
@return: A context factory suitable to be passed to
C{reactor.connectSSL}.
"""
return _WebToNormalContextFactory(self._contextFactory, host, port)
评论列表
文章目录