postman——集合——执行集合——测试脚本——示例06——检查响应中是否包含某个header

检查响应中是否包含某个header:

pm.test("content-type is present",function()
{
pm.response.to.have.header("Content-Type");
});

===========================================================================

 

原文地址:https://www.cnblogs.com/xiaobaibailongma/p/12197114.html