Rework Proxy on_response callback