Split handling HTTP requests into separate class
authorMichael Hanselmann <hansmi@google.com>
Tue, 21 Feb 2012 16:39:46 +0000 (17:39 +0100)
committerMichael Hanselmann <hansmi@google.com>
Wed, 22 Feb 2012 13:12:49 +0000 (14:12 +0100)
commite0003509c73d85229cf687edd25d6ada73f9549b
tree305c9c8af140de88067adc046368ce0a105619d0
parentc81f452ff612eaff5d2b31fa89672b1961b0b02b
Split handling HTTP requests into separate class

Until now HTTP requests were handled in the same class as incoming
connections (http.server.HttpServer). With this change the request
handling is delegated to a separate class which can be re-used in tests
without creating a socket, etc.

Signed-off-by: Michael Hanselmann <hansmi@google.com>
Reviewed-by: RenĂ© Nussbaumer <rn@google.com>
lib/http/server.py
lib/server/noded.py
lib/server/rapi.py