transport.ssladapter

Resolves OpenSSL issues in some servers: https://lukasa.co.uk/2013/01/Choosing_SSL_Version_In_Requests/ https://github.com/kennethreitz/requests/pull/799

Module Contents

Classes

SSLAdapter(self,ssl_version=None,assert_hostname=None,assert_fingerprint=None,**kwargs) An HTTPS Transport Adapter that uses an arbitrary SSL version.
class SSLAdapter(ssl_version=None, assert_hostname=None, assert_fingerprint=None, **kwargs)

An HTTPS Transport Adapter that uses an arbitrary SSL version.

__init__(ssl_version=None, assert_hostname=None, assert_fingerprint=None, **kwargs)
init_poolmanager(connections, maxsize, block=False)
get_connection(*args, **kwargs)

Ensure assert_hostname is set correctly on our pool

We already take care of a normal poolmanager via init_poolmanager

But we still need to take care of when there is a proxy poolmanager

can_override_ssl_version()