slacy slacy - 1 year ago 191
HTTP Question

Python HTTP server that supports chunked encoding?

I'm looking for a well-supported multithreaded Python HTTP server that supports chunked encoding replies. (I.e. "Transfer-Encoding: chunked" on responses). What's the best HTTP server base to start with for this purpose?

Answer Source

Twisted supports chunked transfer encoding (API link) (see also the API doc for HTTPChannel). There are a number of production-grade projects using Twisted (for example, Apple uses it for the iCalendar server in Mac OS X Server), so it's quite well supported and very robust.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download