Adding initial hook to receive the request/response pairs

This commit is contained in:
Louis-Philippe Huberdeau
2017-06-23 09:44:33 -04:00
parent 5ec44b8346
commit 8df4cc3983
6 changed files with 50 additions and 0 deletions

View File

@@ -2599,6 +2599,9 @@ def logHTTPTraffic(requestLogMsg, responseLogMsg):
"""
Logs HTTP traffic to the output file
"""
threadData = getCurrentThreadData()
assert threadData.requestCollector is not None, "Request collector should be initialized by now"
threadData.requestCollector.collectRequest(requestLogMsg, responseLogMsg)
if not conf.trafficFile:
return