class documentation
class BrowserLikeContextFactory(ScrapyClientContextFactory): (source)
Twisted-recommended context factory for web clients. Quoting the documentation of the :class:`~twisted.web.client.Agent` class: The default is to use a :class:`~twisted.web.client.BrowserLikePolicyForHTTPS`, so unless you have special requirements you can leave this as-is. :meth:`creatorForNetloc` is the same as :class:`~twisted.web.client.BrowserLikePolicyForHTTPS` except this context factory allows setting the TLS/SSL method to use. The default OpenSSL method is ``TLS_METHOD`` (also called ``SSLv23_METHOD``) which allows TLS protocol negotiation.
Method | creator |
Undocumented |
Inherited from ScrapyClientContextFactory
:
Class Method | from |
Undocumented |
Method | __init__ |
Undocumented |
Method | get |
Undocumented |
Method | get |
Undocumented |
Instance Variable | tls |
Undocumented |
Instance Variable | tls |
Undocumented |
Instance Variable | _ssl |
Undocumented |