我想获取控制台日志中所有 api 调用的请求详细信息,例如 Karate.prevRequest 但通过使用 karate.configure( ) 方法,这样我就不必在所有场景中编写 Karate.prevRequest 空手道框架中有这方面的规定吗?
请求这样的详细信息:
"headers": {
"Content-Type": [
"application/x-www-form-urlencoded"
],
"Authorization": [
"Basic =="
],
"Content-Length": [
"74"
],
"Host": [
""
],
"Connection": [
"Keep-Alive"
],
"User-Agent": [
"Apache-HttpClient/4.5.14 (Java/11.0.16.1)"
],
"Accept-Encoding": [
"gzip,deflate"
]
},
"method": "POST",
"body": "",
"url": ""
}