def _time_request(self, url, method, **kwargs): with utils.record_time(self.times, self.timings, method, url): body = self.request(url, method, **kwargs) return body