Details
-
Improvement
-
Status: Open
-
Major
-
Resolution: Unresolved
-
cmislib 0.5.1
-
None
-
None
Description
Support alternate implementations of the cmislib.net.RESTService. For example, one might want to use PycURL instead of httplib2 to implement the features of this class.
I suggest RESTService be defined as a Marker class, the existing RESTService be renamed DefaultRESTService, the Binding constructor modified to accept an optional RESTService with DefaultRESTService being used by default (much like how CmisClient supports the binding parameter in its constructor).
I would like to contribute a cmislib.net.PycURLRESTService implementation that uses PycURL and supports all its configurable options including mutual (2-way) certificate authentication. This alternate implementation would continue to support the httplib2.Response object as part of the interface.