Add on method for http server

I need to call `on` function in `HTTPServer` instance.