def __get_handlers(self):
"""
Internal method to handle redirection and use TLS protocol.
"""
handlers = [TLS1Handler]
if self.__proxy:
proxy_handler = urllib2.ProxyHandler(
{'http': self.__proxy, 'https': self.__proxy})
handlers.append(proxy_handler)
return handlers
评论列表
文章目录