kennethreitz/requests — pull request #382 by mastahyeti (2012-01-24 20:25:16+00:00)
Title: Moved dispatch_hook call for pre_request into send method

In the case of using requests.Request or async.request the pre_request hook wasn't very useful because it was called when the request was made rather than when the request was being sent. I moved the dispatch_hook call to just before the call out to conn.urlopen in request.send. Considering that multiple hooks was implemented instead of Response.response_time, I think that this is important because it allows users to time responses. Example: https://gist.github.com/1667527