[No reviewer] Add callback function to httpstack