Python HTTP server that supports chunked encoding?

后端 未结 4 836
醉话见心
醉话见心 2021-01-12 08:32

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

4条回答
  •  慢半拍i
    慢半拍i (楼主)
    2021-01-12 09:17

    Twisted supports chunked transfer and it does so transparently. i.e., if your request handler does not specify a response length, twisted will automatically switch to chunked transfer and it will generate one chunk per call to Request.write.

提交回复
热议问题