httprunner3 - 使用hook函数处理请求信息(header)
作者:互联网
参考:https://www.jianshu.com/p/b0bad20ec015
例如把请求头中cookie内容删除
def headers_delete_cookie(request: dict): request["headers"]["Set-Cookie"] = "" request["headers"]["Cookie"] = "" request["cookies"] = {}
标签:请求,header,request,headers,httprunner3,头中,Cookie,cookie,hook 来源: https://www.cnblogs.com/erchun/p/15210756.html