什么是HTTP“内容类型”用于一个字节blob? [英] What is the HTTP "content-type" to use for a blob of bytes?
本文介绍了什么是HTTP“内容类型”用于一个字节blob?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
在响应客户端的GET请求返回一个字节blob时要使用的HTTPcontent-type是什么?
What is the HTTP "content-type" to use when returning a blob of bytes in response to a client's GET request?
在这种情况下,信息有效负载是使用Python的 Pickle 库序列化的对象。
In this case, the information payload is an object serialized using Python's Pickle library.
推荐答案
您应该使用 application / octet-stream
。
这篇关于什么是HTTP“内容类型”用于一个字节blob?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文