I'm happy to announce the first release of twisted.web2 today. This
is a rewrite/refactor of the twisted.web HTTP server and framework,
providing a nicer API (some parts inspired by the resource API that
Nevow introduced on top of twisted.web) and many internal
improvements, especially in the area of HTTP conformance.
Some highlights:
- Fully asynchronous twisted server.
- Can run as a HTTP/HTTPS server, or behind an apache mod_proxy, or
serve requests via SCGI, or even just plain CGI.
- Supports SCGI clients, CGI scripts, WSGI applications. No new HTTP
client/proxy yet, it's still on the TODO list.
- Also supports most twisted.web resources through a compatibility
layer.
- Implements HTTP 1.1, including keep-alive, chunking, and pipelining.
- Has premade, correct, header parsers and generators for most of the
headers.
- Supports streaming data input and output, has a nonblocking
multipart/form-data parser.
- Automatic support for If-[Un]Modified-Since, If-[None-]Match and
Range.
You can find downloads and documentation here:
http://twistedmatrix.com/projects/web2/
You'll need at least Twisted 2.0.1 as well:
http://twistedmatrix.com/projects/core/
This is still a preliminary release -- the API is not guaranteed to
be stable to the next release.
James