As the TODO line shows, I knew I would have to add this at some point. :-) But I didn't want to implement the kind of complex stack of filters that HTTP::Proxy provides.
I thought about providing some kind of hook for a single callback, just like your patch. Then again, being able to handle a list of callbacks to call in order could be nice.
I like the "hook" key you added and will provide this (or something very similar using references for passing the data around) in the next release. Net::Proxy will probably be able to manage a reference to an array of callbacks as well.
Thanks a lot for your input and patch.
(1)
]
