httplib (now http.client) and friends all have conn.getresponse() and an HTTPResponse class, but the server-side operations of conn.getrequest() and an HTTPRequest class see
For server-side processing you want to look at something like wsgiref.
The WSGI standard parses the request into a simple dictionary with all of the relevant headers and elements.