postman能够进行文件下载功能进行测试吗?
官方文档有说明:
If your API endpoint returns an image, Postman will detect and render it automatically. For binary response types, you should select “Send and download” which will let you save the response to your hard disk. You can then view it using the appropriate viewer. This gives you the flexibility to test audio files, PDFs, zip files, or anything that the API throws at you.
翻译
如果你的API端点返回一个图像,Postman会自动检测并渲染它。对于二进制响应类型,您应该选择“发送和下载”,这将让您保存响应到您的硬盘。然后可以使用适当的查看器查看它。这使您能够灵活地测试音频文件、pdf文件、zip文件或API提供给您的任何内容。
在Send
按钮那里可以选择Send and download