specify http transport in spec
Committed revision 906394 and revision 906397.
The API in http://docs.python.org/library/basehttpserver.html looks pretty simple to me. You extend BaseHTTPRequestHandler and implement do_POST() and/or do_GET(). The request can be read from rfile. It looks like you need to call send_response(200) and end_headers() before writing the response to wfile. What am I missing?
Note that Python 2.x has support for HTTP sprinkled across several modules and none of which support parsing requests in the same fashion as parsing results. To support HTTP as a transport in Python is going to require some hand-coded HTTP parsing, yay.
Remind me again why we're focused on HTTP as a transport instead of TCP sockets?
Also, for the record, Python 3.x is far more sane with respect to HTTP: http://diveintopython3.org/porting-code-to-python-3-with-2to3.html#http
Here's a copy of the avroj HTTP request for the mailbox protocol:
POST / HTTP/1.1
Accept: text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2