post_request hook
authorKenneth Reitz <me@kennethreitz.com>
Wed, 17 Aug 2011 04:33:28 +0000 (00:33 -0400)
committerKenneth Reitz <me@kennethreitz.com>
Wed, 17 Aug 2011 04:33:28 +0000 (00:33 -0400)
requests/models.py

index daf48ea..f9670a4 100644 (file)
@@ -370,6 +370,9 @@ class Request(object):
 
         self.sent = self.response.ok
 
+        self.__dict__.update(
+            dispatch_hook('post_request', self.hooks, self.__dict__))
+
         return self.sent