From 9fe90554ff1c8c7aea9e1e1e210419a845579edd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Isma=C3=ABl=20Bouya?= Date: Fri, 20 Apr 2018 20:07:03 +0200 Subject: Store duration in http requests --- store.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'store.py') diff --git a/store.py b/store.py index 45a5233..0c018e0 100644 --- a/store.py +++ b/store.py @@ -211,6 +211,7 @@ class ReportStore: "body": body, "headers": headers, "status": response.status_code, + "duration": response.elapsed.total_seconds(), "response": None, "response_same_as": self.last_http["date"] }) @@ -222,6 +223,7 @@ class ReportStore: "body": body, "headers": headers, "status": response.status_code, + "duration": response.elapsed.total_seconds(), "response": response.text, "response_same_as": None, }) -- cgit v1.2.3