支持分块编码的Python HTTP服务器? [英] Python HTTP server that supports chunked encoding?
问题描述
我正在寻找一个支持良好的多线程Python HTTP服务器,它支持分块编码回复。 (即响应中的转移编码:分块)。为此目的开始的最佳HTTP服务器基础是什么?
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?
推荐答案
Twisted支持分块传输编码(API链接)(另请参阅 HTTPChannel )。有许多使用Twisted的生产级项目(例如,Apple将它用于Mac OS X Server中的iCalendar服务器),因此它得到了很好的支持并且非常强大。
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.
这篇关于支持分块编码的Python HTTP服务器?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!