Add a possibility to set a custom on_stats function for the Http Facade (#172)
* Add a possibility to set a custom on_stats function for the Http Facade
* Adds test cases
---------
Co-authored-by: Deeka Wong <8337659+huangdijia@users.noreply.github.com>