kennethreitz/requests — pull request #1524 by paul-matthews (2013-08-12 11:33:25+00:00)
Title: Fixed KeyError on non deafult HOOK

At present, if you attempt to attach a hook that isn't for the event 'response' you'll get a KeyError during initialization of PreparedRequest.

I intend to use the hook mechanism to add logic of my own and therefore create my own events.

I believe this would be useful functionality for anyone extending the requests framework.