Redesigned response complete callback mechanism not to use a global callback and support passing in the callback function for each response send.