Karate: Is there a http-request hook in karate, that gets called automatically after every API call, and whose behaviour I can modify?
问题 I want a common implementation to write the: request-body, request-method & response-body to an output file for all the HTTP requests that I make in any of the karate feature files. I have read through the documentation, and the closest option that I found was the afterScenario hook. However this doesn't help me in cases where I want to make multiple API calls in the same scenario. I also tried using karate.prevRequest object by passing it to java function that I wrote. While this helps me