ganeti.http: Split HTTP server and client into separate files
authorMichael Hanselmann <hansmi@google.com>
Thu, 4 Dec 2008 15:23:38 +0000 (15:23 +0000)
committerMichael Hanselmann <hansmi@google.com>
Thu, 4 Dec 2008 15:23:38 +0000 (15:23 +0000)
commit02cab3e7536e27274df63de4718ab39aa8ca7de8
tree15a5f27243a47ed0f47ab306a0966366f75d95ce
parent84f2756eeb419a5705888e5a1ca3fee0d27ab80f
ganeti.http: Split HTTP server and client into separate files

This includes a large rewrite of the HTTP server code. The handling of
OpenSSL errors had some problems that were hard to fix with its
structure. When preparing all of this, I realized that actually HTTP
is a message protocol and that the same code can be used on both the
server and client side to parse requests/responses, with only a few
differences. There are still a few TODOs in the code, but none should
be a show stopper. Many pylint warnings have been fixed, too.

The old code will be removed once all users have been migrated.

Reviewed-by: amishchenko
Makefile.am
lib/http/__init__.py
lib/http/client.py [new file with mode: 0644]
lib/http/server.py [new file with mode: 0644]