gpt4 book ai didi

python - WSGI 字节范围服务

转载 作者:太空狗 更新时间:2023-10-30 01:24:28 25 4
gpt4 key购买 nike

我正在考虑支持 HTTP/1.1 Byte serving在 WSGI 服务器/应用程序中用于:

  • 恢复部分下载
  • 多部分下载
  • 更好的流媒体

WSGI PEP 333提到 WSGI 服务器可以实现字节服务的处理(来自 RFC 2616 第 14.35.2 节定义了 Accept-Range/Range/Content-Range 响应/请求/响应 header )并且如果宣布该功能,应用程序应该实现它:

A server may transmit byte ranges ofthe application's response ifrequested by the client, and theapplication doesn't natively supportbyte ranges. Again, however, theapplication should perform thisfunction on its own if desired.

我进行了一些谷歌搜索,但发现很少关于哪些可用的 WSGI 服务器/中间件/应用程序实现字节范围的信息?有没有人在该领域有经验并可以提示我进一步挖掘的地方?

编辑:任何人都可以发表评论,我怎样才能加强问题才能找到答案?

最佳答案

我认为webob可能会成功,请参阅 file example 的末尾对于范围请求实现,它可以有效地搜索正在提供的文件。

关于python - WSGI 字节范围服务,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/579426/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com