bug fix: aggregate http chunck responses and when it finishes, call the callback function