Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
在拥有处理 JSON 请求的 Twisted Rest 接口之后,现在我需要处理多部分/混合请求,其中 JSON 和二进制文件将结合在一起。
在用 curl 进行了一些测试之后,我意识到请求变量将填充一个“文件”类型,我想知道 Twisted 中是否有任何方法可以正确处理这种请求。
谢谢
虽然这是一篇旧帖子,但我记得用电子邮件模块解决了这个问题,任何人都感兴趣......