Standalone HTTP parser?



Does anyone know of a standalone module for parsing and generating HTTP messages? I'm looking for something that will take a string and return a convenient message object, and vice versa. All the Python HTTP parsing code I've seen is either intimately bound to the corresponding socket I/O operations (e.g. httplib, httplib2, BaseHTTPServer) and/or buried in somebody's framework (e.g. Twisted).

I want to write some HTTP servers/clients that do asynchronous I/O using my own engine (multitask), so I need a HTTP package that won't insist on doing the I/O for me.


Thanks,
Chris Stawarz
.



Relevant Pages

  • Biztalk 2002 HTTP receive (biztalkhttpreceive.dll) on Windows2003
    ... "An error was encountered while parsing the response from the HTTP server" ...
    (microsoft.public.biztalk.server)
  • Re: Standalone HTTP parser?
    ... HTTP messages? ... I want to write some HTTP servers/clients that do asynchronous I/O using my own engine, so I need a HTTP package that won't insist on doing the I/O for me. ... Look at rfc822 or the email module - HTTP responses are in the same format, ...
    (comp.lang.python)
  • Re: Standalone HTTP parser?
    ... HTTP messages? ... corresponding socket I/O operations (e.g. httplib, httplib2, ... I want to write some HTTP servers/clients that do asynchronous I/O ...
    (comp.lang.python)