basho/riak-python-client — pull request #154 by jconerly (2012-10-22 21:29:34+00:00)
Title: Added simple ssl support to http transport

I wanted the ability to use the existing http transport, but toggle it to use https with just a flag in the constructor. This is similar to how other clients (ruby) work.

client = RiakClient(host=..., port=..., ssl=True)

On the back end there is a new class, ``RiakHttpsTransport``, that is just a sub class of ``RiakHttpTransport`` where the ``default_cm`` is overridden to ultimately use ``httplib.HTTPSConnection``.

Again, it's a simple solution, but I've tested it and it works just fine on our SSL enabled Riak clusters. Very little existing code was touched, so risk is minimal. Docs (README and tutorial) have been updated to reflect the new feature.

Salud,

./j