Revision c2b5da2f
ID | c2b5da2f6e7ff347cb94e520d21c441b31fa92e7 |
Redesign http connection module
Merge everything to kamaki.clients
Remove multiple hierarchies of connection classes (== abandon support for
alternative connection methods, e.g. for requests from pypi)
New connection classes are
- RequestManager
- ResponseManager
Semantics:
RequestManager constructor commits a request without performing it
but it performs all sanity checks for url, path, method and params
RequestManager.perform will perform the commited request, if called
ResponseManager constructor needs a RequestManager instance
ResponseManager.(various properties)
request is pooled from a ContextManagerPool (objpool) when needed.
Results are cached and used as long as the ResponseManager instance
is alive
Remove KamakiConnection/ResponseErrors, use ClientError wrapers for everything
Remove the connection livetest
TODO: Adjust unittests
Files
- added
- modified
- copied
- renamed
- deleted
- kamaki
- clients
- __init__.py (diff)
- astakos
- compute
- __init__.py (diff)
- test.py (diff)
- connection
- __init__.py
- errors.py
- kamakicon.py
- test.py
- cyclades
- __init__.py (diff)
- test.py (diff)
- image
- __init__.py (diff)
- test.py (diff)
- livetest
- __init__.py (diff)
- pithos.py (diff)
- pithos
- __init__.py (diff)
- test.py (diff)
- storage
- __init__.py (diff)
- test.py (diff)
- test.py (diff)
- clients
- setup.py (diff)