Version 18 (modified by exarkun, 7 years ago) (diff)

Web got a little better; and remove the indication that we might be working to improve web2 (we might be, but people don't need that indication)

Twisted Web2

Twisted.Web2 is an experimental web server built with Twisted. Useful Web2 functionality will be backported to TwistedWeb until TwistedWeb is as featureful as Web2, then Web2 will be abandoned.

If you aren't sure what's going on here, stop. Use Twisted Web. Do not use Web2.

If you're here to learn about web development with Twisted, please read this page first!

Improvements over Twisted.Web:

  • Streaming upload data
  • Separation of low level HTTP and high level request handling which allows it to run under other transports such as SCGI and CGI
  • IResource API improvements from Nevow
  • More versatile outgoing data streaming API
  • Correct header parsing
  • Full HTTP/1.1 support
  • Output filters (HTTP range support in a generic fashion, and gzip support)
  • Significantly better URI Rewriting when used behind a proxy such as Apache's mod_proxy

Twisted Web2 is available under the MIT Free Software licence.


twisted.web2 is an experimental library, whose improvements will eventually be factored back into twisted.web.

If you want to use web2, please use an SVN checkout of Twisted trunk until the features you need have been made available in twisted.web.


Documentation source is available for Twisted Web2.


Subscribe to the twisted-web mailing list or visit the #twisted.web channel on to ask questions.

Report a bug or request a feature using the issue tracker (registration required), or browse Twisted Web2 tickets.